Commit Graph
63 Commits
Author SHA1 Message Date
Nicola Soranzo 5e7f0c4b18 Fix unit tests exit status
Broken in https://github.com/galaxyproject/galaxy/pull/2564
Also update scripts/nosetests.py
2016-07-29 19:47:08 +01:00
Nick Stoler 834736946c Small run_tests.sh documentation updates.
Make clear that run reports are created by default, print the filename.
2016-06-26 16:08:04 -04:00
John Chilton 53f1782964 Allow setting job_conf path for functional tests. 2016-04-04 14:39:17 -04:00
John Chilton 4c216f1077 Adjust testing directories so no python root is ever "tool_shed".
We have a tool_shed directory in lib, so if we enter a test case from some path and test/tool_shed happens to be a valid python top-level module - it blocks out lib/tool_shed and Galaxy doesn't work properly in the test.

A similar problem was encountered with unit tests and fixed with https://github.com/galaxyproject/galaxy/commit/df442a06382f23bdf0401bdd632b9584d3431281 - but I have decided that directory name was a bit log and so this commit unifies the approach to unit and functional test names for tool shed tests.
2016-04-01 10:09:49 -04:00
John Chilton b8ecf36f2a Improve testing environment variable and CLI documentation.
Document many more variables and improve documentation of what is there. Include fixes recommended by @nsoranzo.
2016-03-29 10:34:47 -04:00
John Chilton eac6c10ec9 Allow running Galaxy tests on an existing external instance. 2016-03-29 08:04:27 -04:00
John Chilton 915b7edcb7 Unify and simplify script driver argument processing. 2016-03-29 08:04:27 -04:00
John Chilton fc1861c4d9 Move "with framework test tools" logic out of nose driver and into run_tests. 2016-03-29 08:04:27 -04:00
John Chilton 362194b2c0 Cleanup logic for GALAXY_TEST_TMP_DIR add docs. 2016-03-29 08:04:26 -04:00
John Chilton e7b5293534 Refactor toolbox hacks used by installed and migration tool tests out...
into driver_util. This greatly simplifies the code structure of scripts/functional_tests.py's main method.

Add description of GALAXY_TEST_SHED_TOOL_CONF and some documentation to all of this.
2016-03-29 08:04:24 -04:00
John Chilton c2b260539b Start list of environment variables used for testing. 2016-03-29 08:04:22 -04:00
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