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 nf-test to unzip module #5357

Closed
wants to merge 13 commits into from
Closed

Conversation

jennylsmith
Copy link
Contributor

@jennylsmith jennylsmith commented Mar 20, 2024

PR checklist

Adds nf-tests to unzip module.

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the module conventions in the contribution docs
  • If necessary, include test data in your PR.
  • Remove all TODO statements.
  • Emit the versions.yml file.
  • Follow the naming conventions.
  • Follow the parameters requirements.
  • Follow the input/output options guidelines.
  • Add a resource label
  • Use BioConda and BioContainers if possible to fulfil software requirements.
  • Ensure that the test works with either Docker / Singularity. Conda CI tests can be quite flaky:
    • For modules:
      • nf-core modules test <MODULE> --profile docker
      • nf-core modules test <MODULE> --profile singularity
      • nf-core modules test <MODULE> --profile conda
    • For subworkflows:
      • nf-core subworkflows test <SUBWORKFLOW> --profile docker
      • nf-core subworkflows test <SUBWORKFLOW> --profile singularity
      • nf-core subworkflows test <SUBWORKFLOW> --profile conda

@jennylsmith jennylsmith requested review from jfy133 and a team as code owners March 20, 2024 21:37
@jennylsmith jennylsmith requested review from koenbossers and sateeshperi and removed request for a team March 20, 2024 21:37
@jennylsmith jennylsmith self-assigned this Mar 20, 2024
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.

any reason why you chose a different input to the old pytests versions for this module?

and because they are very similar, do you mind to also convert the unzipfiles module in this PR?

@jennylsmith
Copy link
Contributor Author

jennylsmith commented Mar 20, 2024

any reason why you chose a different input to the old pytests versions for this module?

and because they are very similar, do you mind to also convert the unzipfiles module in this PR?

@mashehu My only reasoning to change the input was that the process itself is generic, so I thought it might make more sense to use a generic filetype input. I also thought it might be a smaller and so quicker to run, but I admit I didn't compare file sizes directly. Is it preferred to change it back to the original input dataset from pytest?

Happy to convert the unzipfiles nf-tests to this PR as well.

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.

Getting there 🙂

modules/nf-core/unzip/main.nf Outdated Show resolved Hide resolved
modules/nf-core/unzip/tests/main.nf.test Outdated Show resolved Hide resolved
@mashehu
Copy link
Contributor

mashehu commented Mar 21, 2024

@mashehu My only reasoning to change the input was that the process itself is generic, so I thought it might make more sense to use a generic filetype input. I also thought it might be a smaller and so quicker to run, but I admit I didn't compare file sizes directly. Is it preferred to change it back to the original input dataset from pytest?

Okay, yes, makes total sense.

@CarsonJM
Copy link
Contributor

CarsonJM commented Apr 3, 2024

@jennylsmith LGTM! I think you should be good to merge it!

@SPPearce
Copy link
Contributor

SPPearce commented May 8, 2024

@jennylsmith , can you update the branch with the changes from the master and see if the tests pass? I don't have access to your branch to do that.

@SPPearce
Copy link
Contributor

@jennylsmith, are you able to update your branch with the most recent changes please.

@SPPearce
Copy link
Contributor

SPPearce commented Jul 4, 2024

Incorpated changes to #5897

@SPPearce SPPearce closed this Jul 4, 2024
auto-merge was automatically disabled July 4, 2024 09:55

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants