Closed grst closed 1 year ago
The typical command used to run pytest
has changed now. Don't forget to add NF_CORE_MODULES_TEST=1
to the beginning. We need to export that environment variable to be able to test the versions stuff.
cd /path/to/git/clone/of/nf-core/modules/
NF_CORE_MODULES_TEST=1 PROFILE=docker pytest --tag fastqc --symlink --keep-workflow-wd
cd /path/to/git/clone/of/nf-core/modules/
NF_CORE_MODULES_TEST=1 TMPDIR=~ PROFILE=singularity pytest --tag fastqc --symlink --keep-workflow-wd
If anyone gets a FileNotFoundError
for versions.yml
like this one, then double-check that the workflow name in test.yml
needs to start with the tool name.
FileNotFoundError: [Errno 2] No such file or directory: '/data/scratch/sturm/projects/2021/nf-core-modules-test-2/18/e188685ed693dac21be7e96d1ac8f3/pytest-workflow/Run_bismark_align_single-end_test_workflow/output/run/versions.yml'
/data/scratch/sturm/projects/2021/nf-core-modules-test-2/conda/nf-core-tools-dev-5bfdd78995f6a1657f45a07545dfe96b/lib/python3.8/pathlib.py:1078: FileNotFoundError
The fix of test.yml
:
-- name: Run bismark align single-end test workflow
+- name: bismark align single-end test workflow
Note, updated profile command:
NF_CORE_MODULES_TEST=1 TMPDIR=/tmp/ PROFILE=singularity pytest tests/modules/fgbio/sortbam --symlink --wt 2 --keep-workflow-wd
from: https://nfcore.slack.com/archives/CJRH30T6V/p1632766640143300
The two tools that were as TODO actually got fixed a few weeks after
COMPLETED