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 tests for nf-core subworkflows create-test-yml #2219

Merged
merged 11 commits into from Mar 29, 2023

Conversation

Aratz
Copy link
Contributor

@Aratz Aratz commented Mar 28, 2023

This PR adds unit-tests for nf-core subworkflows create-test-yml.

The code in nf_core/subworkflows/test_yml_builder.py is very similar to its module equivalent, so the new tests are more or less a copy of the module tests. Maybe it would be worth refactoring SubworkflowTestYmlBuilder and ModuleTestYmlBuilder to avoid code duplication?

Closes #1895

PR checklist

  • This comment contains a description of changes (with reason)
  • CHANGELOG.md is updated
  • If you've fixed a bug or added code that should be tested, add tests!

@codecov
Copy link

codecov bot commented Mar 28, 2023

Codecov Report

Merging #2219 (8d81588) into dev (f8ef685) will increase coverage by 0.96%.
The diff coverage is 33.33%.

❗ Current head 8d81588 differs from pull request most recent head 20f82c0. Consider uploading reports for the commit 20f82c0 to get more accurate results

@@            Coverage Diff             @@
##              dev    #2219      +/-   ##
==========================================
+ Coverage   71.99%   72.96%   +0.96%     
==========================================
  Files          78       78              
  Lines        8385     8385              
==========================================
+ Hits         6037     6118      +81     
+ Misses       2348     2267      -81     
Impacted Files Coverage Δ
nf_core/subworkflows/test_yml_builder.py 49.37% <33.33%> (+33.89%) ⬆️

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

@Aratz
Copy link
Contributor Author

Aratz commented Mar 28, 2023

@nf-core-bot fix linting

Copy link
Contributor

@mashehu mashehu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for doing this!

nf_core/subworkflow-template/tests/main.nf Show resolved Hide resolved
tests/subworkflows/create_test_yml.py Outdated Show resolved Hide resolved
tests/subworkflows/create_test_yml.py Outdated Show resolved Hide resolved
tests/subworkflows/create_test_yml.py Outdated Show resolved Hide resolved
tests/subworkflows/create_test_yml.py Show resolved Hide resolved
tests/subworkflows/create_test_yml.py Outdated Show resolved Hide resolved
tests/subworkflows/create_test_yml.py Outdated Show resolved Hide resolved
Aratz and others added 3 commits March 29, 2023 10:19
Co-authored-by: Matthias Hörtenhuber <mashehu@users.noreply.github.com>
CHANGELOG.md Outdated Show resolved Hide resolved
[skip ci]
@Aratz
Copy link
Contributor Author

Aratz commented Mar 29, 2023

Thanks for the reviews!

@Aratz Aratz merged commit 8a9569b into nf-core:dev Mar 29, 2023
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.

None yet

4 participants