Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI regression fix and end-to-end CLI test #158

Merged
merged 5 commits into from
Sep 9, 2022
Merged

Conversation

talonchandler
Copy link
Collaborator

I accidentally introduced a regression that broke the CLI in #133 (I failed to move import os into the new file).

This PR fixes the regression and adds a test that runs the CLI in a background process and checks if it finishes successfully. This type of end-to-end test will give us more confidence that the CLI can run at all. Even though we were unit testing the functions underlying the CLI calls, the CLI was unusable and this bug made it past the tests.

@codecov-commenter
Copy link

codecov-commenter commented Aug 27, 2022

Codecov Report

Merging #158 (f4c1ba8) into main (44b84d8) will increase coverage by 0.05%.
The diff coverage is 88.88%.

@@            Coverage Diff             @@
##             main     #158      +/-   ##
==========================================
+ Coverage   11.14%   11.19%   +0.05%     
==========================================
  Files          44       44              
  Lines        5969     5974       +5     
==========================================
+ Hits          665      669       +4     
- Misses       5304     5305       +1     
Impacted Files Coverage Δ
recOrder/scripts/cli.py 0.00% <0.00%> (ø)
...cOrder/tests/pipeline_tests/test_qlipp_pipeline.py 100.00% <100.00%> (ø)
recOrder/tests/conftest.py 97.77% <0.00%> (-0.10%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@deprecated-napari-hub-preview-bot
Copy link

deprecated-napari-hub-preview-bot bot commented Aug 27, 2022

Preview page for your plugin is ready here:
https://preview.napari-hub.org/mehta-lab/recOrder/158
Updated: 2022-08-31T17:57:34.969037

@talonchandler
Copy link
Collaborator Author

The fix is working and the tests are passing on all platforms. Ready for review + merge.

@talonchandler talonchandler changed the title CLI regression fix & and end-to-end CLI test CLI regression fix and end-to-end CLI test Aug 31, 2022
@talonchandler talonchandler merged commit 50e791b into main Sep 9, 2022
@talonchandler talonchandler deleted the cli-regression-fix branch September 9, 2022 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants