Commit Graph
1055 Commits
Author SHA1 Message Date
John Chilton 2c2ed3f288 Decouple API and Selenium tests from galaxy-test-driver (and the whole app!)
I've been refactoring toward this for at least half a decade. Being able to pip install the API and Selenium tests without bringing in the whole app is important to make them usable outside the context of the app - for testing remote, running servers for instance.

If galaxy-test-driver is available the test cases will still spawn a Galaxy instance if needed, but this is not longer required for import or use.
2020-07-06 13:57:48 -04:00
John Chilton a747294bd9 Refactor toward test case independence from Galaxy. 2020-07-02 12:41:38 -04:00
Dave B d638804ab4 Use configuration to activate a filter for testing. 2020-06-03 13:35:19 -04:00
Nicola Soranzo 3aebb5fb7c Merge branch 'release_20.05' into dev 2020-06-01 13:53:27 +01:00
Simon Bray aba97cba26 add option to text asserts to specify number of occurrences 2020-05-29 17:49:19 +02:00
Matthias Bernt 94f7177ba5 use packaging for version comparison add test 2020-05-22 11:42:42 +02:00
Nicola Soranzo a079fa0127 Merge branch 'release_20.01' into release_20.05 2020-05-07 16:09:13 +01:00
Nuwan Goonasekera 65476e6e32 Force container image names to lower case to satisfy Docker 2020-05-07 01:52:40 +05:30
Marius van den Beek f2071d1282 Merge pull request #9425 from bernt-matthias/topic/sim_size
Add delta_frac for sim_size to specify relative file size differences
2020-05-05 16:23:05 +02:00
M BerntandMarius van den Beek a9458485f8 add delta_frac attribute to specify relative size differences
the files generated in a test are allowed to differ (+-)
by delta_frac * size_of_the_test_file

use case: I develop a a lare tool collection where some files
differ much (ususally the large files) and some only a bit
(the small files). by applying a large delta to all files
meaningful differences in small files are not detected.

Co-authored-by: Marius van den Beek <m.vandenbeek@gmail.com>
2020-05-05 13:29:47 +02:00
Marius van den Beek 4637149008 Merge pull request #9490 from nsoranzo/remove_command_interpreter
Remove deprecated ``interpreter`` attribute from tools ``<command>``
2020-05-04 17:25:00 +02:00
Nicola Soranzo 973c6a7fa5 Merge pull request #9291 from bernt-matthias/topic/clarify_data_column_use_header_names 2020-04-21 17:28:27 +01:00
M BerntandNicola Soranzo 505b3b32a5 Apply suggestions from code review
Co-Authored-By: Nicola Soranzo <nicola.soranzo@gmail.com>
2020-04-21 16:13:53 +02:00
M BerntandNicola Soranzo 4be1232a59 remove indentation
Co-Authored-By: Nicola Soranzo <nicola.soranzo@gmail.com>
2020-04-21 14:34:51 +02:00
Matthias Bernt 3015b39886 split test outputs 2020-04-21 10:31:17 +02:00
Nicola Soranzo ef4f5ccda4 Remove deprecated `interpreter attribute from tools <command>` 2020-03-05 12:53:09 +01:00
Nicola Soranzo c9f806ffaa Merge branch 'release_20.01' into dev 2020-02-23 18:17:36 +00:00
mvdbeek cc0a71bc14 Make dataset discovery respect final_job_state
Fixes https://github.com/galaxyproject/galaxy/issues/9394
2020-02-20 15:31:49 +01:00
M Bernt 1f535a0779 remove remnant cat 2020-02-01 14:15:20 +01:00
M Bernt fcf5436717 column_param_configfile test: don't check json content
dont compare the json file content but rely completely on the assertions on
the loaded json contents.

the json content test was superficial and did not work anymore since the order
of the keys differed. it worked before since the inputs contained only a
single key.
2020-02-01 14:15:20 +01:00
M Bernt f25192b533 json configfiles: handle slect like data_column
- in particular the case of an empty select did yield "None" before
  now its []
  Problem was that the ValueWrapper is not None if nothing is selected
- but also non empty selects were "option1,option2" now its
  ["option1","option2"]
- renamed variable value -> value_wrapper
2020-02-01 14:15:20 +01:00
M Bernt 22a43aa5d8 extend config file inputs tests
add cases for ooptional/multiple data/select inputs
2020-02-01 14:15:20 +01:00
M Bernt 61e227dd85 add missing tool output 2020-01-31 15:53:32 +01:00
M Bernt 7dc87aed78 data_column use_header_names test and docs
- add a test (also as example)
- clarify in the docs
2020-01-31 13:38:36 +01:00
Dannon f94a5f5757 Merge pull request #9223 from nsoranzo/space_in_root_path
Use a Galaxy root path with a space for integration tests
2020-01-28 16:21:33 -05:00
mvdbeek 83a8e1b7eb Test that working dir is intact on resubmission 2020-01-22 10:25:16 +01:00
M Bernt 5de147a181 re-remove the data input 2020-01-22 09:37:24 +01:00
M Bernt fff8d2ec7b inputs configfile: test for filename and data_style attributes 2020-01-22 09:37:19 +01:00
Nicola Soranzo 65c1a529cc Quote paths in <command> 2020-01-17 19:59:35 +00:00
John Chilton a2d14be11f Allow testing command versions in tools - tests, XSD. 2019-12-19 17:34:31 -05:00
John Chilton 3654901144 Restricted selection text inputs for workflow inputs. 2019-12-10 13:25:17 -05:00
John Chilton 46fc861fb6 Implement mapping container resolver. 2019-12-06 10:44:34 -05:00
John Chilton 45019c3fbd Move galaxy testing utilities into more sane package structure.
Split test/base into lib/galaxy_test/base and lib/galaxy_test/driver. Dividing things on whether they import galaxy-app code or not - with the goal of a galaxy-test-base package that doesn't depend on galaxy-app and a galaxy-test-driver package that does.

I've been refactoring around this division for a long time. Certain tests (namely the integration tests) always need to bootstrap Galaxy - but the API tests and the Selenium tests should be installable and runnable without Galaxy in the Python environment. So future galaxy-test-api and galaxy-test-selenium packages should have only an optional dependency on galaxy-test-driver.

Properly sturcturing these namespaces is a precursor for real packages on PyPI, clean separation of the tool shed testing code, and cleans up all the flake8 noqa hacks in test/.
2019-11-12 09:03:06 -05:00
Martin Cech 67a3950c27 Merge branch 'release_19.09' into dev 2019-11-08 12:55:24 -05:00
Marius van den Beek 75402b4bab Merge pull request #8897 from jmchilton/it_tool_interface
[19.09] Structured access to Galaxy internals for (Interactive) Tools
2019-11-07 17:37:56 +01:00
Nicola Soranzo f779f1af31 Merge branch 'release_19.09' into dev 2019-11-07 16:01:02 +00:00
John Chilton 657764cfb4 Merge pull request #8934 from mvdbeek/dont_run_exec_after_process_if_job_failed
[19.09] Don't re-determine if job failed in exec_after_process hook
2019-11-07 08:34:33 -05:00
Nicola Soranzo fdd4cdf978 Merge branch 'release_19.09' into dev 2019-11-07 11:21:11 +00:00
Nicola Soranzo 3bd3f8f41c Merge branch 'release_19.05' into release_19.09 2019-11-07 09:54:35 +00:00
mvdbeek bb38795e75 Give test data managers distinct ids and names 2019-11-06 14:33:45 +01:00
mvdbeek 0d8311d385 Don't require legal values if conversion required
In the UI that means you can choose any value and hit execute.
Your job will still not run if that is an illegal value,
but at least you can try.
2019-11-05 18:07:08 +01:00
mvdbeek ca080eeef1 Start tool tag with param name 2019-11-05 18:03:44 +01:00
mvdbeek 6931ea733b Add test for implicit conversion in multi_data inputs 2019-11-05 14:37:07 +01:00
John Chilton 8807a8f39f Separate new inject tests into new tool. 2019-10-30 10:09:34 -04:00
John Chilton 1240ab276b Fix id convention for test interactive tools. 2019-10-30 09:59:55 -04:00
John Chilton 4ccef702be Cleanup structured IT internals access commit.
- Unit test fixes and added tests.
- Change __history_id to __history_id__ per comment from @bgruening
2019-10-30 09:59:55 -04:00
John Chilton 2e7a0720e7 Structured access to Galaxy internals for ITs. 2019-10-30 09:59:55 -04:00
Simon Bray 0753fe7d2f Update validation_default.xml 2019-10-23 13:21:20 +02:00
Simon Bray 9926ea50e1 add test, len(output_bytes) 2019-10-23 12:07:40 +02:00
will 009611cf04 add .gitattributes file and normalize line endings to use LF instead of CLRF 2019-09-18 22:03:37 -04:00