commit/galaxy-central: jmchilton: Improve examples of newer tool functional test features.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/37544732f61c/ Changeset: 37544732f61c User: jmchilton Date: 2014-02-03 17:11:31 Summary: Improve examples of newer tool functional test features. Affected #: 3 files diff -r 0f636b29e4f58d1568e8658dcae57e3c45a14563 -r 37544732f61c32202d134c263c1257f0920e36a0 test/functional/tools/README.txt --- a/test/functional/tools/README.txt +++ b/test/functional/tools/README.txt @@ -1,3 +1,3 @@ This directory contains tools only useful for testing the tool test framework and demonstrating it features. Run the driver script 'run_functional_tests.sh' -with '-installed' as first argument to run through these tests. +with '-framework' as first argument to run through these tests. diff -r 0f636b29e4f58d1568e8658dcae57e3c45a14563 -r 37544732f61c32202d134c263c1257f0920e36a0 test/functional/tools/disambiguate_cond.xml --- a/test/functional/tools/disambiguate_cond.xml +++ b/test/functional/tools/disambiguate_cond.xml @@ -46,19 +46,8 @@ <data name="out_file1" format="txt" /></outputs><tests> - <test> - <param name="p1|use" value="True"/> - <param name="p2|use" value="False"/> - <param name="p3|use" value="True"/> - <param name="p4|use" value="True" /> - <param name="p4|file" value="simple_line.txt" /> - <output name="out_file1"> - <assert_contents> - <has_line line="4 7 4" /> - <has_line line="This is a line of text." /> - </assert_contents> - </output> - </test> + <!-- Can use nested conditional blocks as shown below to disambiguate + various nested parameters. --><test><conditional name="p1"><param name="use" value="False"/> @@ -83,5 +72,23 @@ </assert_contents></output></test> + <!-- Can also use a more concise, flat verison of this, but it the + above version is more clear and should be considered preferable. + --> + <test> + <param name="p1|use" value="True"/> + <param name="p2|use" value="False"/> + <param name="p3|use" value="True"/> + <param name="p4|use" value="True" /> + <!-- Only need to specify enough of a suffix to disambiguate, + but don't do this - it is too clever. --> + <param name="p4|file" value="simple_line.txt" /> + <output name="out_file1"> + <assert_contents> + <has_line line="4 7 4" /> + <has_line line="This is a line of text." /> + </assert_contents> + </output> + </test></tests></tool> diff -r 0f636b29e4f58d1568e8658dcae57e3c45a14563 -r 37544732f61c32202d134c263c1257f0920e36a0 test/functional/tools/disambiguate_repeats.xml --- a/test/functional/tools/disambiguate_repeats.xml +++ b/test/functional/tools/disambiguate_repeats.xml @@ -14,17 +14,24 @@ <data name="out_file1" format="txt" /></outputs><tests> - <!-- Can use prefixes to disambiguate inputs or force order. --> + <!-- Can disambiguate repeats and specify multiple blocks using, + nested structure. --><test> - <param name="queries_1|input" value="simple_line_alternative.txt"/> - <param name="queries_0|input" value="simple_line.txt"/> - - <param name="more_queries_1|input" value="simple_line_alternative.txt" /> - <param name="more_queries_0|input" value="simple_line.txt"/> - - <output name="out_file1" file="simple_lines_interleaved.txt"/> + <repeat name="queries"> + <param name="input" value="simple_line.txt"/> + </repeat> + <repeat name="more_queries"> + <param name="input" value="simple_line_alternative.txt"/> + </repeat> + <output name="out_file1"> + <assert_contents> + <has_line line="This is a line of text." /> + <has_line line="This is a different line of text." /> + </assert_contents> + </output></test> - + <!-- Multiple such blocks can be specified but only with newer API + driven tests. --><test><repeat name="queries"><param name="input" value="simple_line.txt"/> @@ -40,6 +47,17 @@ </repeat><output name="out_file1" file="simple_lines_interleaved.txt"/></test> + <!-- Can also use prefixes to disambiguate inputs or force order, but + the above nested structure is preferable. --> + <test> + <param name="queries_1|input" value="simple_line_alternative.txt"/> + <param name="queries_0|input" value="simple_line.txt"/> + + <param name="more_queries_1|input" value="simple_line_alternative.txt" /> + <param name="more_queries_0|input" value="simple_line.txt"/> + + <output name="out_file1" file="simple_lines_interleaved.txt"/> + </test></tests></tool> Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org