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

add --nogen option to run tests on pregenerated code #14

Merged
merged 2 commits into from
Jul 21, 2020

Conversation

tlambert03
Copy link
Owner

This adds a --nogen option to the pytest command that lets you run tests on the pregenerated model code. So you can:

  1. run python -m ome_autogen to generate the model
  2. muck about manually with the generated model at src/ome_types/model
  3. run pytest with pytest --nogen to test against your manually edited code.
    • ... use pytest --nogen --runxfail to see errors on skipped files
    • ... use (e.g.) pytest --nogen --runxfail -k spim to test a single xml

@codecov-commenter
Copy link

Codecov Report

Merging #14 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #14      +/-   ##
==========================================
+ Coverage   95.20%   95.22%   +0.02%     
==========================================
  Files           1        1              
  Lines         396      398       +2     
==========================================
+ Hits          377      379       +2     
  Misses         19       19              
Impacted Files Coverage Δ
src/ome_autogen.py 95.22% <100.00%> (+0.02%) ⬆️

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 8916752...d75f338. Read the comment docs.

@tlambert03 tlambert03 merged commit ee9966e into master Jul 21, 2020
@tlambert03 tlambert03 deleted the nogen-option branch July 21, 2020 23:47
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