Re: PlUnit and restricting tests to one of a forall
Alan Baljeu <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
Change the definition of etfile. etfile(X, Y) :- nb_getval(et_all, X), etfile0(X,Y). etfile0 like you had before. Then to use only one, ?- nb_setval(et_all, 'file_you_want'), run_tests. or for all: ?- nb_setval(et_all, _), run_tests. Alan Baljeu On Sunday, November 3, 2013 4:29:47 PM, Andrae Muys <[email protected]> wrote: I have a number of PlUnit tests that run the same sequence of operations over pairs of input/output files I have declared using the forall/1 option to test/2. ie. etfile('basic.ttl', 'basic_out.ttl'). etfile('basic_bnode.ttl', 'basic_bnode_out.ttl'). etfile('has_transcript.ttl', 'has_transcript_out.ttl'). etfile('depicts_building.ttl', 'depicts_building_out.ttl'). test(entailment, [ setup(init_ont), cleanup(rdf_reset_db), forall(etfile(InFile, OutFile)) ]) :- ... run_tests/1 allows me to restrict the test run to just this test, but I would like to be able to restrict it to a single instance of the forall without editing the test_file. Is this possible? Cheers, Andrae -- Andrae Muys e:[email protected] t:@etymon b:http://etymon.blogspot.com _______________________________________________ SWI-Prolog mailing list [email protected] https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog -------------- next part -------------- HTML attachment scrubbed and removed