diff --git a/README.md b/README.md index 89c8933..cda2379 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/main.nf b/main.nf index a2c7484..6db4d83 100644 --- a/main.nf +++ b/main.nf @@ -174,7 +174,7 @@ process TEST_PUBLISH_FOLDER { } -process TEST_IGNORED_FAIL { +process TEST_FAIL { /* This process should automatically fail but be ignored. */ @@ -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() @@ -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 diff --git a/tests/main.test_bin_script.test b/tests/main.test_bin_script.nf.test similarity index 100% rename from tests/main.test_bin_script.test rename to tests/main.test_bin_script.nf.test diff --git a/tests/main.test_bin_script.nf.test.snap b/tests/main.test_bin_script.nf.test.snap new file mode 100644 index 0000000..6078a60 --- /dev/null +++ b/tests/main.test_bin_script.nf.test.snap @@ -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" + } +} \ No newline at end of file diff --git a/tests/main.test_bin_script.test.snap b/tests/main.test_bin_script.test.nf.snap similarity index 100% rename from tests/main.test_bin_script.test.snap rename to tests/main.test_bin_script.test.nf.snap diff --git a/tests/main.test_ignore_fail.test b/tests/main.test_fail.nf.test similarity index 76% rename from tests/main.test_ignore_fail.test rename to tests/main.test_fail.nf.test index c488c54..15d4f2c 100644 --- a/tests/main.test_ignore_fail.test +++ b/tests/main.test_fail.nf.test @@ -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( diff --git a/tests/main.test_ignore_fail.test.snap b/tests/main.test_fail.test.nf.snap similarity index 73% rename from tests/main.test_ignore_fail.test.snap rename to tests/main.test_fail.test.nf.snap index dd94a7c..9704aca 100644 --- a/tests/main.test_ignore_fail.test.snap +++ b/tests/main.test_fail.test.nf.snap @@ -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 } ], diff --git a/tests/main.test_stage_remote.test b/tests/main.test_stage_remote.nf.test similarity index 100% rename from tests/main.test_stage_remote.test rename to tests/main.test_stage_remote.nf.test diff --git a/tests/main.test_stage_remote.test.snap b/tests/main.test_stage_remote.nf.test.snap similarity index 100% rename from tests/main.test_stage_remote.test.snap rename to tests/main.test_stage_remote.nf.test.snap