Skip to content

Commit e9caf34

Browse files
committed
fix: Updated nf-test and removed local test files.
1 parent 8be4dd9 commit e9caf34

File tree

8 files changed

+18
-15404
lines changed

8 files changed

+18
-15404
lines changed

modules/local/benchmark_report/tests/main.nf.test

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,29 @@ nextflow_process {
33
script "../main.nf"
44
process "BENCHMARK_REPORT"
55

6-
// TODO: Should run without AWS cost report
6+
setup {
7+
run("SEQERA_RUNS_DUMP") {
8+
script "../../seqera_runs_dump/main.nf"
9+
process {
10+
"""
11+
input[0] = ['id': 'fjV0o6yPbbamB', 'workspace': 'community/showcase', 'group': 'group1']
12+
input[1] = "https://api.tower.nf"
13+
input[2] = ""
14+
input[3] = ""
15+
"""
16+
}
17+
}
18+
}
719

820
test("Should run with removing failed tasks") {
921
when {
22+
params {
23+
outdir = "tests/results"
24+
}
1025
process {
1126
"""
12-
input[0] = [file("modules/local/benchmark_report/tests/runs_dump/4Bi5xBK6E2Nbhj")]
13-
input[1] = ["group1"]
27+
input[0] = SEQERA_RUNS_DUMP.out.run_dump.collect{it[1]}
28+
input[1] = SEQERA_RUNS_DUMP.out.run_dump.collect{it[0].group}
1429
input[2] = []
1530
input[3] = true
1631
"""
@@ -19,13 +34,8 @@ nextflow_process {
1934

2035
then {
2136
assert process.success
22-
assert snapshot(process.out).match()
2337
assert path(process.out.benchmark_html.get(0)).exists()
2438
assert path(process.out.versions.get(0)).exists()
2539
}
2640
}
27-
28-
// TODO: Should run with multiple runs
29-
// TODO: Should run with AWS cost report
30-
// TODO: Should run with remove failed tasks
3141
}

modules/local/benchmark_report/tests/runs_dump/4Bi5xBK6E2Nbhj/service-info.json

Lines changed: 0 additions & 33 deletions
This file was deleted.

modules/local/benchmark_report/tests/runs_dump/4Bi5xBK6E2Nbhj/workflow-launch.json

Lines changed: 0 additions & 77 deletions
This file was deleted.

modules/local/benchmark_report/tests/runs_dump/4Bi5xBK6E2Nbhj/workflow-load.json

Lines changed: 0 additions & 29 deletions
This file was deleted.

modules/local/benchmark_report/tests/runs_dump/4Bi5xBK6E2Nbhj/workflow-metadata.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)