[galaxyproject/galaxy] 9e07d9: Handle driver shutdown, show all test in pytest
Branch: refs/heads/dev Home: https://github.com/galaxyproject/galaxy Commit: 9e07d9cc062bf8a21bfab72c2505191e1d3c86e4 https://github.com/galaxyproject/galaxy/commit/9e07d9cc062bf8a21bfab72c25051... Author: mvdbeek <m.vandenbeek@gmail.com> Date: 2018-08-16 (Thu, 16 Aug 2018) Changed paths: A test/functional/conftest.py M test/functional/test_data_managers.py M test/functional/test_toolbox.py M test/functional/test_toolbox_pytest.py Log Message: ----------- Handle driver shutdown, show all test in pytest This is pretty hackish as fixtures can't be used during test discovery. To properly shut down the driver I've added a conftest.py file that will be called when quitting pytest. We might be able to handle this a little better if we wrote a full plugin, but for now this works. Also now reports all test indexes, so you can select e.g test 2 of a tool. Commit: 2b275b7df033c323cec93c34a8089a4820fce768 https://github.com/galaxyproject/galaxy/commit/2b275b7df033c323cec93c34a8089... Author: mvdbeek <m.vandenbeek@gmail.com> Date: 2018-08-16 (Thu, 16 Aug 2018) Changed paths: M test/functional/test_toolbox_pytest.py Log Message: ----------- Start counting test numbers at 1 and use _test_n That allows for nicer select syntax like ```` pytest test/functional/test_toolbox_pytest.py -k '(random_lines1 or Cut1) and _test_1' ``` Commit: e07cc9a96009bafb47c27199cc231213ce2c3514 https://github.com/galaxyproject/galaxy/commit/e07cc9a96009bafb47c27199cc231... Author: John Chilton <jmchilton@gmail.com> Date: 2018-08-20 (Mon, 20 Aug 2018) Changed paths: A test/functional/conftest.py M test/functional/test_data_managers.py M test/functional/test_toolbox.py M test/functional/test_toolbox_pytest.py Log Message: ----------- Merge pull request #6608 from mvdbeek/more_pytest_improvements Handle driver shutdown, show all tests in pytest Compare: https://github.com/galaxyproject/galaxy/compare/3c7eeecee52d...e07cc9a96009 **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.
participants (1)
-
GitHub