Commit Graph
28 Commits
Author SHA1 Message Date
John Chilton b76a65f2cd Fix example api test command.
The -api parameter takes an optional argument so it can be thought of as "-api [testpath]". So in the example -with_framework_test_tools needs to come first.
2015-07-05 08:31:15 -04:00
John Chilton 19cac9ac9d Mention -installed option in run_tests.sh help. 2015-06-09 09:03:43 -04:00
Martin Cech d28ea45556 Merge branch 'release_15.05' into dev
Conflicts:
	config/plugins/visualizations/common/templates/script_entry_point.mako
2015-05-07 13:09:24 -04:00
John Chilton d15b68f316 Fix run_tests.sh exit code.
Recently broken with merge or PR #137.
2015-05-06 14:29:25 -04:00
John Chilton 32eb76e143 Exclude some more non-Galaxy code from unit tests.
These functions were imported from an external module and contain non-deterministic doctests.
2015-05-06 12:40:07 -04:00
John Chilton ba228c5775 Merge pull request #137 from yhoogstrate/dev
run tests from outer directories
2015-05-01 19:44:34 -05:00
Dannon Baker a1719ab5c4 Swap --pdb to --debug to keep it general for now, since I'd really rather it be ipdb. 2015-04-27 08:52:41 -04:00
Dannon Baker 275dbc9116 Document -p|--pdb option for testing. 2015-04-27 08:46:20 -04:00
Dannon Baker b86388447e Add toggle to run_tests for pdb. 2015-04-27 08:43:13 -04:00
yhoogstrate 3f9f72e5ee Update run_tests.sh 2015-04-22 17:21:47 +02:00
yhoogstrate 3ef1b21488 Update run_tests.sh
fixed and tested it with ./galaxy/run_tests.sh -installed
2015-04-22 17:19:44 +02:00
yhoogstrate 203329be27 run tests from outer directories
Allows run_tests.sh to be executed from directories outside the galaxy home directory without returning the error "python: can't open file './scripts/functional_tests.py': [Errno 2] No such file or directory"
2015-04-21 14:27:06 +02:00
Dannon Baker 27a78957f6 Meant to not specify a particular test in the TestUserInfo example 2015-04-07 10:13:10 -04:00
Dannon Baker 894cc1cb28 Clarify optional test name specification for nose tests and add a couple examples. 2015-04-06 17:17:24 -04:00
Dannon Baker 4a6484593f Add a line to run_test.sh help detailing how to run a single API test. 2015-04-06 13:03:47 -04:00
John Chilton 62f0495cfc Add verbose test error flag option in run_tests.sh. 2015-03-06 13:16:31 -05:00
John Chilton e99adb5b0f Add --dockerize and --db [postgres|mysql|sqlite] options to run_tests.sh.
Runs tests in a Dockerfile with pre-migrated databases and all testing dependencies (postgres, mysql, npm, casper, phantomjs, etc...). Hopefully this makes it easier to run more interesting tests - down the road I would like to add more options for things like condor, slurm, run as real user, etc....
2015-02-21 13:29:58 -05:00
John Chilton 3c76664ef8 Source the common startup script for run_tests.sh.
Fixes planemo #50.
2015-01-11 21:43:13 -05:00
John Chilton 37f2504ac4 Add --no_cleanup option to tests. 2014-12-27 17:49:16 -05:00
John Chilton 887bc44a41 Implement structured tool test data.
Rather than relying solely on exceptions back to nose/test framework - add option (--structured_data_report_file) to run_tests.sh that causes a bunch of detailed data to be dumped to the specified file in a very structured way. Includes full to_dict of the job from the API which in turn includes job metrics, command-line, job's standard error and outputs (instead of the test frameworks), as well as the tool inputs, and exceptions broken out for tool execution versus output checking.

Its all indexed in the file by the test id (without the actual test toolbox depending on knowing the test id) - so one could pair this information with the XUnit output to produce much more detailed breakdowns of the tests.
2014-12-08 00:21:47 -05:00
John Chilton 3cff264a7e Add --xunit_report_file option to run_tests.sh.
If supplied - python based tests will output a xunit style test to the specified file.
2014-12-06 00:14:20 -05:00
John Chilton e7b0801f8d Small improvements to JavaScript testing with run_tests.sh.
Add new -j|--casperjs option to run through the casperjs test suite. Ensure grunt is on path before attempting to run qunit tests. A more useful version of this changeset which automatically installed phantomjs, casperjs, grunt, and npm as needed and added the required tools to the tester's path (https://bitbucket.org/jmchilton/galaxy-central-fork-1/commits/0919fc9403933f88e458724b95b0d213117bbd0e) proved unpopular because of implementation details - see conversation here https://bitbucket.org/galaxy/galaxy-central/pull-request/461/remove-deprecated-test-scripts-improved/diff.
2014-09-02 12:35:33 -04:00
John Chilton 07afca43e2 Small style fix in run_tests.sh. 2014-07-25 10:40:53 -05:00
Dave Bouvier c70150cfa0 Add options to the shell script wrappers to run the API tests. 2014-04-30 15:43:21 -04:00
John Chilton 3ac17e09f1 Rework test framework testing and tools.
-framework will still cause just a small set of non-default, non-user facing tools to be tested and exerise various aspects of the tool and test frameworks, but now an argument can be passed in -with_framework_test_tools to allow these tools to be used as part of the normal test framework (i.e. when not using -framework). This serves two purposes - to ensure the feature coverage of existing tests remains high as the tests are migrated out of the distribution and to allow a set of tests to be available for functional (e.g. API tests) that users don't need to see.
2014-04-28 11:48:51 -05:00
John Chilton 875a95039c Add qunit test options to new run_tests.sh script.
Can target specific tests or all tests and can optionally watch tests using Carl's work on 'grunt watch'.
2014-04-28 11:48:51 -05:00
John Chilton ca80f9626c Add unit tests to run_tests.sh. 2014-04-28 11:48:51 -05:00
John Chilton 4ee1cb5c82 Create run_tests.sh to replace run_functional_tests.sh
Should be backward compatible but features better argument handling - things can appear in other orders (-id x -data_managers is the same as -data_managers -id x for instance), better error messages if arguments are missing, and more standard short argument with single dash or long argument with double dash variants of each argument are available.
2014-04-28 11:48:51 -05:00