Skip to content
Draft
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ This process creates a file on the worker machine and writes it to the publishDi

This process creates a folder on the worker machine and writes it to the publishDir directory. By default, this is written to a subfolder called `output` in the working directory, but it can be overridden using the `--outdir` parameter. Use this to demonstrate the ability to publish to the relevant output directory.

### `TEST_IGNORED_FAIL`
### `TEST_FAIL`

This process should fail immediately but be ignored using the default configuration.

Expand Down
8 changes: 4 additions & 4 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ process TEST_PUBLISH_FOLDER {
}


process TEST_IGNORED_FAIL {
process TEST_FAIL {
/*
This process should automatically fail but be ignored.
*/
Expand Down Expand Up @@ -358,11 +358,11 @@ workflow NF_CANARY {
TEST_PASS_FOLDER(TEST_CREATE_FOLDER.out.outfolder)
TEST_PUBLISH_FILE()
TEST_PUBLISH_FOLDER()
TEST_IGNORED_FAIL()
TEST_FAIL()
TEST_MV_FILE()
TEST_MV_FOLDER_CONTENTS()
TEST_VAL_INPUT("Hello World")

TEST_GPU( dummy.filter { params.gpu } )
// POC of emitting the channel
Channel.empty()
Expand All @@ -378,7 +378,7 @@ workflow NF_CANARY {
TEST_PASS_FOLDER.out,
TEST_PUBLISH_FILE.out,
TEST_PUBLISH_FOLDER.out,
TEST_IGNORED_FAIL.out,
TEST_FAIL.out,
TEST_MV_FILE.out,
TEST_MV_FOLDER_CONTENTS.out,
TEST_GPU.out
Expand Down
File renamed without changes.
16 changes: 16 additions & 0 deletions tests/main.test_bin_script.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"TEST_BIN_SCRIPT": {
"content": [
{
"0": [
"test.txt:md5,d41d8cd98f00b204e9800998ecf8427e"
]
}
],
"meta": {
"nf-test": "0.9.2",
"nextflow": "24.10.3"
},
"timestamp": "2025-01-14T14:13:22.327004"
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
nextflow_process {

name "Test Process TEST_IGNORED_FAIL"
name "Test Process TEST_FAIL"
script "main.nf"
process "TEST_IGNORED_FAIL"
process "TEST_FAIL"

test("TEST_IGNORED_FAIL") {
test("TEST_FAIL") {

then {
assertAll(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,18 @@
"Should run without failures": {
"content": [
{
"stderr": [

],
"stderr": [],
"errorReport": null,
"exitStatus": 0,
"failed": false,
"stdout": [

],
"stdout": [],
"errorMessage": null,
"trace": {
"tasksFailed": 1,
"tasksCount": 1,
"tasksSucceeded": 0
},
"name": "TEST_IGNORED_FAIL",
"name": "TEST_FAIL",
"success": true
}
],
Expand Down
File renamed without changes.