I have a question about testing a module within a ...
# nf-test
m
I have a question about testing a module within a pipeline. I have modified the module slightly after installing it and would now like to run its tests. However, when I issue the command
Copy code
nf-test test modules/nf-core/sourmash/sketch/tests/main.nf.test
I get the following output
Copy code
šŸš€ nf-test 0.9.2
https://www.nf-test.com
(c) 2021 - 2024 Lukas Forer and Sebastian Schoenherr

Load .nf-test/plugins/nft-utils/0.0.3/nft-utils-0.0.3.jar
No tests to execute.
which is confusing, since the module test file exists and is the same as in the modules repository.
s
clear your local cache and try again
nf-test clean
or run in debug or verbose mode for more info or provide profile
m
Strangely, none of that has an effect. No extra output is produced.
Copy code
āÆ nf-test test --debug --profile=docker --verbose modules/nf-core/sourmash/sketch/tests/main.nf.test

šŸš€ nf-test 0.9.2
https://www.nf-test.com
(c) 2021 - 2024 Lukas Forer and Sebastian Schoenherr

Load .nf-test/plugins/nft-utils/0.0.3/nft-utils-0.0.3.jar
No tests to execute.
But the test file clearly exists.
Copy code
āÆ tree modules/nf-core/sourmash/sketch
modules/nf-core/sourmash/sketch
ā”œā”€ā”€ environment.yml
ā”œā”€ā”€ main.nf
ā”œā”€ā”€ meta.yml
ā”œā”€ā”€ sourmash-sketch.diff
└── tests
    ā”œā”€ā”€ main.nf.test
    └── main.nf.test.snap
I did run the clean command beforehand.
s
i see there is .diff
m
Yes, as I mentioned I have made slight modifications to the module and would like to test them.
s
any luck resolving this ?
m
Not yet, I'll see if it's due to the patch later. It's pretty strange, though.
So I just ran tried to nf-test another module that I didn't modify and it doesn't do anything either šŸ˜•
Copy code
āÆ nf-test test --debug --profile=docker --verbose modules/nf-core/sourmash/index/tests/main.nf.test

šŸš€ nf-test 0.9.2
https://www.nf-test.com
(c) 2021 - 2024 Lukas Forer and Sebastian Schoenherr

Load .nf-test/plugins/nft-utils/0.0.3/nft-utils-0.0.3.jar
No tests to execute.
s
There is a config that excludes the nf-core modules
šŸ‘€ 1
m
Cheers, that was obviously it šŸ™‚
šŸ‘ 1