mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-09 18:43:34 -05:00
[Snakemake] Update test cases
This commit is contained in:
parent
1e453be7fa
commit
ea5d4aa2a1
3 changed files with 43 additions and 0 deletions
19
.automation/test/snakemake/README.md
Normal file
19
.automation/test/snakemake/README.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Snakemake test cases
|
||||
|
||||
This folder holds the test cases for **Snakemake**.
|
||||
|
||||
## Additional Docs
|
||||
|
||||
No Additional information is needed for this test case.
|
||||
|
||||
## Good Test Cases
|
||||
|
||||
The test cases denoted: `LANGUAGE_good_FILE.EXTENSION` are all valid, and should pass successfully when linted.
|
||||
|
||||
- **Note:** They are linted utilizing the default linter rules.
|
||||
|
||||
## Bad Test Cases
|
||||
|
||||
The test cases denoted: `LANGUAGE_bad_FILE.EXTENSION` are **NOT** valid, and should trigger errors when linted.
|
||||
|
||||
- **Note:** They are linted utilizing the default linter rules.
|
12
.automation/test/snakemake/snakemake_bad_1.smk
Normal file
12
.automation/test/snakemake/snakemake_bad_1.smk
Normal file
|
@ -0,0 +1,12 @@
|
|||
rule all:
|
||||
input:
|
||||
file1='result.txt',
|
||||
|
||||
|
||||
rule simulation:
|
||||
output:
|
||||
file1="result.txt"
|
||||
shell:
|
||||
"""
|
||||
touch {output}
|
||||
"""
|
12
.automation/test/snakemake/snakemake_good_1.smk
Normal file
12
.automation/test/snakemake/snakemake_good_1.smk
Normal file
|
@ -0,0 +1,12 @@
|
|||
rule all:
|
||||
input:
|
||||
file1="result.txt",
|
||||
|
||||
|
||||
rule simulation:
|
||||
output:
|
||||
file1="result.txt",
|
||||
shell:
|
||||
"""
|
||||
touch {output}
|
||||
"""
|
Loading…
Reference in a new issue