Comments (4)
I think we have to distinguish between a module/process test and documentation. Maybe an own issue for docs?
Regarding module tests: You can think of a module as a set of processes and functions. Each process and function has a particular responsibility. Both consume input data as arguments, execute a task, and can return an output. And it would be nice to test if such a unit executes as expected. That is the fundamental idea of a Unit Test :)
So ideally, a module has a corresponding module test suite, that does exactly that:
- It sets up the environment and set up the preconditions for the unit (here a Nextflow process or function) (given)
- It executes the unit (the process or function) (when)
- It checks assertions about the expected behaviour (then)
How can this look like? Assume we have a module file myModule.nf
that contains a process myProcess()
. A Test Suite could be a file myModuleTest.nf
that actually includes the process from myModule.nf
and correctly sets up the environment (linking a container, defines URLs to source data, etc.). Assertions could be realised by just routing the output from the process of interest to an assertionProcess()
and check the output there. This process should fail, if at least one assertion was false.
Maybe we can just set up a proof-of-concept test for one of your modules, and see if this works out?
from modules.
Need to think about where we keep test data and how it is organised.
Suggestion: still use nf-core/test-data
but reorganise. Keep everything in one branch, have a set of data under common
that can be used by multiple tools. Stuff that is specific to a single tool can then go in subdirectories that mirror nf-core/modules
.
from modules.
So can we consider this one closed now that we've got so many tests we hit the GitHub actions limit?
from modules.
I think we can indeed 😁 🎉
from modules.
Related Issues (20)
- Investigate issue extracting minigut_cf.tar.gz for centrifuge
- Investigate issue extracting data.tar.gz for rgi related modules HOT 1
- Investigate unknown issue for checkv/updatedatabase module
- new module: pypgx/createinputvcf
- Fix malt tests that are using a 739.0 MiB zip as input HOT 7
- new module: pypgx/preparedepthofcoverage
- new module: pypgx/computecontrolstatistics
- new module: pypgx/runngspipeline
- Remove tags.yml files if we are sure we no longer need them HOT 1
- new module: MSISENSORPRO/MSISENSORPRO_SOMATIC_TUMORONLY
- Investigate why `subworkflows/nf-core/fastq_align_hisat2` tests were not triggered
- snpeff security issue HOT 3
- [FEATURE] add stub and tests to lofreq/filter
- new module: SENTIEON/QUALCAL
- Standardized channel output for different files HOT 1
- new module: DIAMOND/CLUSTER
- new module: REPEATMASKER HOT 2
- new module: BRAKER3 HOT 1
- update module: FCS/FCSGX
- Minor bug: krakentools/combinekreports incorrect description
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modules.