Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@Aratz Aratz force-pushed the test_create-test-yml branch from 0039e2e to 49c3bd9 Compare March 28, 2023 14:16
@Aratz Aratz force-pushed the test_create-test-yml branch from 49c3bd9 to a661087 Compare March 29, 2023 07:40
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!

[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.

4 participants