From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b50bc6538a649497 X-Google-Attributes: gid103376,public From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen) Subject: Designing test suites (was: if statements) Date: 2000/11/09 Message-ID: #1/1 X-Deja-AN: 691597200 References: <3A02CED4.520C2768@brighton.ac.uk> <3A078B6F.D34B024B@erols.com> <8mTN5.7821$pq3.603668@news.flash.net> <3A0824BB.14ACCA12@bton.ac.uk> <8ua3s1$c4t$1@nnrp1.deja.com> <3A09456E.D1F1D3A2@bton.ac.uk> <8udasq$kn$1@nnrp1.deja.com> X-Complaints-To: abuse@verio.net X-Trace: iad-read.news.verio.net 973775555 216.44.122.34 (Thu, 09 Nov 2000 13:12:35 GMT) Organization: LJK Software NNTP-Posting-Date: Thu, 09 Nov 2000 13:12:35 GMT Newsgroups: comp.lang.ada Date: 2000-11-09T00:00:00+00:00 List-Id: In article , "Ken Garlington" writes: > "Robert Dewar" wrote in message > news:8udasq$kn$1@nnrp1.deja.com... > > : I suppose one could at least introduce SOME notion of > : aesthetics, e.g. evaluate layout against precanned style > : rules, or evaluate complexity using established metrics. > > Given the presumed use of Ada to support highly reliable systems, I'd > especially like to see a robot of this type attempt to "break" the solution > by feeding it invalid inputs, etc. It might not be possible for something > this simple, but once you get up to more complete solutions, I think bonus > points should be awarded to solutions that implement error recovery, etc. One approach that has struck me lately (in my real work) is striving to get a test suite that achieves 100% code path coverage on some _different_ implementation, and then running that test suite against the implementation under test. For the student problem case (as you say, something not so simple), it might be possible to refine the test each year to achieve 100% code path coverage on every solution that has ever been submitted (perhaps even the incorrect ones).