Commit Graph
52 Commits
Author SHA1 Message Date
John Chilton 8fd83df665 Allow override of location of virtual env Galaxy manages. 2016-01-13 13:55:36 +00:00
John Chilton 9dc9ddf8cd Add --replace-pip option to common_startup.sh.
Needed to restore correct functionality to planemo.
2016-01-13 13:55:35 +00:00
Nate Coraor 4eefd885ec Improve startup options related to wheel/dependency/virtualenv
management. Drop hard requirement on lzo (doubt anyone other than
usegalaxy.org is using it, but it will be added as a extras option for
bxlab/bx-python for anyone who is).

Fixes #1150
2015-12-22 14:03:50 -05:00
Martin Cech f0fc8d6d4c update used galaxy/testing-base to 15.10.3 2015-12-09 13:08:09 -05:00
Nicola Soranzo 0c8a738a35 Export GALAXY_TEST_DBURI as GALAXY_CONFIG_OVERRIDE_DATABASE_CONNECTION before installing wheels. Fix #1205.
As test/docker/base/run_test_wrapper.sh does.
2015-12-04 11:39:36 +00:00
Daniel Blankenberg 727167b8d1 Merge pull request #1083 from martenson/update-testing-docker-image
Update testing docker image
2015-11-16 18:36:38 -05:00
Nicola Soranzo b19e71ec46 Update run_tests.sh help for #844. 2015-11-16 14:57:53 +00:00
Martin Cech 7c863eb2ae update the image tag 2015-11-13 12:46:04 -05:00
Martin Cech 6d4328766b remove whitespace at line ends 2015-11-13 12:45:45 -05:00
Nate Coraor d90ba82e92 Add a --dev-wheels arg to common_startup.sh (called by run_tests.sh by
default) that will install things in dev-requirements.txt.
2015-10-26 14:07:00 -04:00
Nate Coraor 26f78a5870 Bump docker test image to 15.10.1 2015-10-19 11:47:20 -04:00
Nate Coraor c893afda00 Merge branch 'dev' into smash_eggs 2015-10-19 11:46:58 -04:00
Martin Cech 8bd94c1fff Merge pull request #936 from natefoo/dockerize-tests-setup
common_startup.sh fixes for run_tests.sh --dockerize and wheels
2015-10-17 11:38:45 -04:00
Nate Coraor d475792d24 Use a specific version of the testing-base docker image. 2015-10-16 14:19:43 -04:00
Nate Coraor da9ebc17bb Run ./scripts/common_startup.sh inside docker when using `run_tests.sh
--dockerize`. Requires a rebuild of galaxy/base-testing.

Necessary for tests to run on #428 (and anything else once #428 is
merged).
2015-10-16 13:36:17 -04:00
Nate Coraor 367ceae256 Dockerized tests need to create and activate .venv if it does not exist.
Do this by calling common_startup.sh prior to manage_db.sh in
run_test_wrapper.sh. Will require a rebuild of the testing-base image.

Also, have scripts in Galaxy root activate .venv if it exists.
2015-10-16 11:35:52 -04:00
Nate Coraor 433b79de2b Merge branch 'dev' of https://github.com/galaxyproject/galaxy into smash_eggs 2015-10-13 16:54:18 -04:00
Nate Coraor 744835bbfe Allow the use of common_startup.sh's --skip-eggs from run_tests.sh, and
have tox pass this flag (so that dependencies are installed in the tox
envs)
2015-10-13 12:47:01 -04:00
Nate Coraor cc23adb0a9 Merge pull request #843 from jmchilton/text_file_busy_2
Allow reuse of parent /tmp directory in dockerized testing.
2015-10-06 00:02:07 -04:00
John Chilton 596f9116f2 Use framework test tools for --api and --casperjs tests.
These tests are explicitly designed to test the framework and use a tool panel. ``sh run_tests.sh`` and ``sh run_tests.sh -id`` are meant to test Galaxy's configuration to some degree, and other tests qunit, unit, and toolshed do not depend on the toolbox.
2015-10-05 14:23:10 +01:00
John Chilton ea28282b59 Add new run_tests.sh command to mount the external tmp directory.
This is an attempt to potentially end these "Text file busy" problems on test: https://jenkins.galaxyproject.org/job/docker-api/170/testReport/junit/api.test_workflow_extraction/WorkflowExtractionApiTestCase/test_extract_reduction_from_history/.
2015-10-05 13:21:15 +01:00
John Chilton 49740caaa2 Add documentation for running casperjs tests through run_tests.sh.
Add option to run a specific test. Verified xunit reports work and --dockerize works for casperjs tests.
2015-10-01 13:45:37 +01:00
John Chilton b0b119356b Normalize test output name.
Update toolshed, casperjs, and framework tests to produce reports with the name of run_<type>_tests.html to match functional and API tests.
2015-10-01 13:44:16 +01:00
John Chilton 134c985f90 Updates and fixes for dockerized Galaxy testing. 2015-09-19 16:52:48 +01:00
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