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

exit 1 on No source path provided #210

Merged
merged 3 commits into from
Sep 25, 2021
Merged

Conversation

DetachHead
Copy link
Contributor

closes #208

@codecov-commenter
Copy link

codecov-commenter commented Sep 24, 2021

Codecov Report

Merging #210 (96183e5) into main (87313d7) will decrease coverage by 0.15%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #210      +/-   ##
==========================================
- Coverage   96.17%   96.01%   -0.16%     
==========================================
  Files          29       29              
  Lines        1699     1708       +9     
==========================================
+ Hits         1634     1640       +6     
- Misses         65       68       +3     
Impacted Files Coverage Δ
robotidy/cli.py 93.00% <100.00%> (ø)
robotidy/transformers/OrderSettings.py 98.18% <0.00%> (-1.82%) ⬇️
robotidy/transformers/MergeAndOrderSections.py 98.41% <0.00%> (-1.59%) ⬇️
robotidy/transformers/ReplaceRunKeywordIf.py 97.29% <0.00%> (-1.36%) ⬇️
robotidy/transformers/NormalizeAssignments.py 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 87313d7...96183e5. Read the comment docs.

@bhirsz
Copy link
Member

bhirsz commented Sep 24, 2021

Thanks for the PR! Tests are failing because there are some CLI e2e tests where I test some CLI option and do not set source path. the solution is either set the path or set expected exit_status to 1.

result = run_tidy()
add exit_code=1

This test look invalid (it doesn't really test anything, just "tidy did not trip over during run"). So you could remove it - and I can try to add better tests for iterating paths recursively later:

@DetachHead
Copy link
Contributor Author

Thanks, will fix when I get home

@DetachHead
Copy link
Contributor Author

@bhirsz should be all good now

@bhirsz bhirsz merged commit de8fb94 into MarketSquare:main Sep 25, 2021
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.

"no source path provided" error exits with code 0
3 participants