-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start with tests for the gantt plots
- Loading branch information
1 parent
1bd8318
commit e04c3e9
Showing
5 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Nov-28 09:37:34.522 [main] INFO com.askimed.nf.test.App - nf-test 0.8.1 | ||
Nov-28 09:37:34.552 [main] INFO com.askimed.nf.test.App - Arguments: [test, --profile=conda, --tap=test.tap, --verbose] | ||
Nov-28 09:37:34.555 [main] WARN com.askimed.nf.test.commands.RunTestsCommand - No nf-test config file found. | ||
Nov-28 09:37:34.555 [main] ERROR com.askimed.nf.test.commands.RunTestsCommand - No tests ot directories found containing test files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
nextflow_process { | ||
|
||
name "Test Process PLOT_RUN_GANTT" | ||
script "../main.nf" | ||
process "PLOT_RUN_GANTT" | ||
config "./nextflow.config" | ||
|
||
tag "modules" | ||
tag "modules_local" | ||
tag "plot_run_gantt" | ||
|
||
test("Should run without failures") { | ||
|
||
setup { | ||
run("SEQERA_RUNS_DUMP") { | ||
script "../../seqera_runs_dump/main.nf" | ||
process { | ||
""" | ||
input[0] = ['id': '4Bi5xBK6E2Nbhj', 'workspace': 'community/showcase'] | ||
""" | ||
} | ||
} | ||
} | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = SEQERA_RUNS_DUMP.out.run_dump.join(SEQERA_RUNS_DUMP.out.workflow_json).map { meta, run_dump, json -> [ meta + [ pipeline : getWorkflowName(json) ], run_dump ] } | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert snapshot(process.out.html).match() }, | ||
{ assert process.success } | ||
) | ||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"Should run without failures": { | ||
"content": [ | ||
[ | ||
|
||
] | ||
], | ||
"timestamp": "2023-11-28T16:52:51.371307827" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
process { withName: 'SEQERA_RUNS_DUMP' { container = 'public.ecr.aws/seqera-labs/wave/containers:tower-cli-0.9.0--2cb0f2e9d85d026b' } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
plot_run_gantt: | ||
- modules/local/plot_run_gantt/** |