File tree Expand file tree Collapse file tree 2 files changed +30
-25
lines changed Expand file tree Collapse file tree 2 files changed +30
-25
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ This API documentation is for the [`nf-core/tools`](https://github.com/nf-core/t
44
55## Contents
66
7- - [ Pipeline code lint tests] ( ./pipeline_lint_tests.md ) (run by ` nf-core pipelines lint ` )
8- - [ Module code lint tests] ( ./module_lint_tests.md ) (run by ` nf-core modules lint ` )
9- - [ Subworkflow code lint tests] ( ./subworkflow_lint_tests.md ) (run by ` nf-core subworkflows lint ` )
10- - [ nf-core/tools Python package API reference] ( ./api/index .md )
7+ - [ Pipeline code lint tests] ( ./pipeline_lint_tests/actions_awsfulltest .md ) (run by ` nf-core pipelines lint ` )
8+ - [ Module code lint tests] ( ./module_lint_tests.md/environment_yml.md ) (run by ` nf-core modules lint ` )
9+ - [ Subworkflow code lint tests] ( ./subworkflow_lint_tests/main_nf .md ) (run by ` nf-core subworkflows lint ` )
10+ - [ nf-core/tools Python package API reference] ( ./api/utils .md )
Original file line number Diff line number Diff line change @@ -13,62 +13,67 @@ def nf_test_content(self) -> Dict[str, List[str]]:
1313
1414 This lint test checks the following files and content of these files:
1515
16- * `*.nf.test` files should specify the `outdir` parameter:
16+ * `` *.nf.test`` files should specify the `` outdir` ` parameter:
1717
18- .. code-block:: groovy
18+ .. code-block:: groovy
1919
20- when {
21- params {
22- outdir = "$outputDir"
23- }
20+ when {
21+ params {
22+ outdir = "$outputDir"
2423 }
24+ }
2525
2626 * A `versions.yml` file should be included in the snapshot of all `*.nf.test` files
2727
2828 * The `nextflow.config` file should contain:
29+
2930 .. code-block:: groovy
31+
3032 modules_testdata_base_path = <path>
3133
34+ and
35+
3236 .. code-block:: groovy
37+
3338 pipelines_testdata_base_path = <path>
3439
3540 And should set the correct resource limits, as defined in the `test` profile
3641
3742 * The `nf-test.config` file should:
3843 * Make sure tests are relative to root directory
3944
40- .. code-block:: groovy
45+ .. code-block:: groovy
4146
42- testsDir "."
47+ testsDir "."
4348
4449 * Ensure a user-configurable nf-test directory
4550
46- .. code-block:: groovy
51+ .. code-block:: groovy
4752
48- workDir System.getenv("NFT_WORKDIR") ?: ".nf-test"
53+ workDir System.getenv("NFT_WORKDIR") ?: ".nf-test"
4954
5055 * Use a test specific config
5156
52- .. code-block:: groovy
57+ .. code-block:: groovy
5358
54- configFile "tests/nextflow.config"
59+ configFile "tests/nextflow.config"
5560
5661 All these checks can be skipped in the `.nf-core.yml` file using:
5762
58- .. code-block:: yaml
63+ .. code-block:: yaml
5964
60- lint:
61- nf_test_content: False
65+ lint:
66+ nf_test_content: False
6267
6368 or
6469
65- .. code-block:: yaml
70+ .. code-block:: yaml
6671
67- lint:
68- nf_test_content:
69- - tests/<test_name>.nf.test
70- - tests/nextflow.config
71- - nf-test.config
72+ lint:
73+ nf_test_content:
74+ - tests/<test_name>.nf.test
75+ - tests/nextflow.config
76+ - nf-test.config
7277 """
7378 passed : List [str ] = []
7479 failed : List [str ] = []
You can’t perform that action at this time.
0 commit comments