This project aims to finalise the transition of unit tests for all nf-core modules and sub-workflows to nf-test. It’s a good starting point for first timer to contribute and review Pull-Request.
Goal
- Move all nf-core/modules to nf-test
- Move all nf-core/subworkflows to nf-test
More informations
- Pytest to nf-test migration documentation
- nf-test bitesize talk
- nf-test guidelines
How to proceed
As there are a lot of modules (i.e. 54) and subworkflows (i.e. 20) to migrate we need to stay organised to avoid duplicated work. To do so, we created three issues to track every contribution and a simple procedure as follows:
- Check if no one is already assigned to the modules/subworkflow you want to work on using one of the three main issues:
- Assign yourself to the sub-issue
- Perform the migration
- Fork
nf-core/modulesrepository to your Github account - Clone locally or use gitpod/codespaces
- Clone pytest2nf-test
git clone https://github.com/GallVp/pytest2nf-test- Install it
./gradlew installDist - Create alias or add to
PATH:alias pytest2nf-test=${PWD}/build/install/pytest2nf-test/bin/pytest2nf-test
- Install it
- Go to modules repo and create a branch
git checkout -b <tool_name> - Run
pytest2nf-test --nfcore-modules <tool_name> - Run
nf-core modules test <tool_name> -profile <singularity/docker/conda>andnf-core modules lint <tool_name> - Fix nf-test if necessary
- Check if the module follows the guidelines
- Commit changes and create Pull Request (PR) and link it to the sub-issue
- Fork
- When your PR is ready, ask for a review and review someone else’s PR
- When merged update the Hackathon project
- Rinse and repeat!
introduction video
category
components