Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/snapshots/adaptivecard.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.03.1"
},
"timestamp": "2025-05-07T13:52:10.350817122"
Expand Down
2 changes: 1 addition & 1 deletion .github/snapshots/changelog.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.03.1"
},
"timestamp": "2025-05-07T13:52:01.993722854"
Expand Down
2 changes: 1 addition & 1 deletion .github/snapshots/ci.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.03.1"
},
"timestamp": "2025-05-07T13:52:03.306256217"
Expand Down
2 changes: 1 addition & 1 deletion .github/snapshots/citations.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.03.1"
},
"timestamp": "2025-05-07T13:52:14.716393995"
Expand Down
2 changes: 1 addition & 1 deletion .github/snapshots/code_linters.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.03.1"
},
"timestamp": "2025-05-07T13:52:14.716393995"
Expand Down
2 changes: 1 addition & 1 deletion .github/snapshots/codespaces.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.03.1"
},
"timestamp": "2025-05-07T13:52:14.716393995"
Expand Down
2 changes: 1 addition & 1 deletion .github/snapshots/default.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.04.0"
},
"timestamp": "2025-05-07T13:29:04.284923"
Expand Down
2 changes: 1 addition & 1 deletion .github/snapshots/documentation.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.03.1"
},
"timestamp": "2025-05-07T13:52:10.350817122"
Expand Down
2 changes: 1 addition & 1 deletion .github/snapshots/email.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.03.1"
},
"timestamp": "2025-05-07T13:52:10.350817122"
Expand Down
2 changes: 1 addition & 1 deletion .github/snapshots/fastqc.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.03.1"
},
"timestamp": "2025-05-07T13:51:48.3930543"
Expand Down
2 changes: 1 addition & 1 deletion .github/snapshots/github_badges.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.03.1"
},
"timestamp": "2025-05-07T13:52:09.233336075"
Expand Down
2 changes: 1 addition & 1 deletion .github/snapshots/gitpod.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.03.1"
},
"timestamp": "2025-05-07T13:52:14.716393995"
Expand Down
2 changes: 1 addition & 1 deletion .github/snapshots/gpu.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.04.0"
},
"timestamp": "2025-06-16T14:29:10.076573"
Expand Down
2 changes: 1 addition & 1 deletion .github/snapshots/igenomes.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.03.1"
},
"timestamp": "2025-05-07T13:52:07.123394148"
Expand Down
2 changes: 1 addition & 1 deletion .github/snapshots/license.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.03.1"
},
"timestamp": "2025-05-07T13:52:10.350817122"
Expand Down
2 changes: 1 addition & 1 deletion .github/snapshots/modules.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.03.1"
},
"timestamp": "2025-05-07T13:51:26.771349539"
Expand Down
2 changes: 1 addition & 1 deletion .github/snapshots/multiqc.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.03.1"
},
"timestamp": "2025-05-07T13:51:49.209676384"
Expand Down
2 changes: 1 addition & 1 deletion .github/snapshots/nf_core_configs.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.03.1"
},
"timestamp": "2025-05-07T13:52:14.716393995"
Expand Down
2 changes: 1 addition & 1 deletion .github/snapshots/nf_schema.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.03.1"
},
"timestamp": "2025-05-07T13:52:19.694086325"
Expand Down
4 changes: 2 additions & 2 deletions .github/snapshots/rocrate.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.03.1"
},
"timestamp": "2025-05-07T13:52:10.350817122"
}
}
}
2 changes: 1 addition & 1 deletion .github/snapshots/seqera_platform.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.03.1"
},
"timestamp": "2025-05-07T13:52:10.350817122"
Expand Down
2 changes: 1 addition & 1 deletion .github/snapshots/slackreport.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.03.1"
},
"timestamp": "2025-05-07T13:52:10.350817122"
Expand Down
2 changes: 1 addition & 1 deletion .github/snapshots/vscode.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
]
],
"meta": {
"nf-test": "0.9.2",
"nf-test": "0.9.3",
"nextflow": "25.03.1"
},
"timestamp": "2025-05-07T13:52:10.350817122"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-test-lint-wf-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
- name: Install nf-test
uses: nf-core/setup-nf-test@v1
with:
version: "0.9.2"
version: "0.9.3"
install-pdiff: true

# Create template files
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-test-wf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- name: Install nf-test
uses: nf-core/setup-nf-test@v1
with:
version: "0.9.2"
version: "0.9.3"
install-pdiff: true

- name: Run nf-core/tools to create pipeline
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Explicitly declare conda-forge as a channel in the conda setup for GitHub CI for nf-test ([#3764](https://github.com/nf-core/tools/pull/3764))
- Update charliecloud URL ([#3757](https://github.com/nf-core/tools/pull/3757))
- Fix: Add NXF_VERSION environment variable to nf-test workflow ([#3770](https://github.com/nf-core/tools/pull/3770))
- Update nf-test to 0.9.3 ([#3781](https://github.com/nf-core/tools/pull/3781))

### Linting

Expand Down
7 changes: 3 additions & 4 deletions nf_core/components/components_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,12 @@ def generate_snapshot(self) -> bool:
obsolete_snapshots = compiled_pattern.search(nftest_out.decode())
if obsolete_snapshots:
self.obsolete_snapshots = True

# check if nf-test was successful
if "Assertion failed:" in nftest_out.decode():
return False
elif "no valid tests found." in nftest_out.decode():
log.error("Test file 'main.nf.test' not found")
self.errors.append("Test file 'main.nf.test' not found")
elif "No tests to execute." in nftest_out.decode():
log.error("Nothing to execute. Is the file 'main.nf.test' missing?")
self.errors.append("Nothing to execute. Is the file 'main.nf.test' missing?")
return False
else:
log.debug("nf-test successful")
Expand Down
2 changes: 1 addition & 1 deletion nf_core/pipeline-template/.github/workflows/nf-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ concurrency:

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NFT_VER: "0.9.2"
NFT_VER: "0.9.3"
NFT_WORKDIR: "~"
NXF_ANSI_LOG: false
NXF_SINGULARITY_CACHEDIR: ${{ github.workspace }}/.singularity
Expand Down
2 changes: 1 addition & 1 deletion tests/components/test_components_generate_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,5 @@ def test_test_not_found(self):
test_file.rename(test_file.parent / "main.nf.test.bak")
with pytest.raises(UserWarning) as e:
snap_generator.run()
assert "Test file 'main.nf.test' not found" in str(e.value)
assert "Nothing to execute. Is the file 'main.nf.test' missing?" in str(e.value)
Path(test_file.parent / "main.nf.test.bak").rename(test_file)