From ea5d4aa2a1ef83b64925ab688c8797d8d8d8e50c Mon Sep 17 00:00:00 2001 From: kpj Date: Mon, 7 Sep 2020 16:55:06 +0200 Subject: [PATCH] [Snakemake] Update test cases --- .automation/test/snakemake/README.md | 19 +++++++++++++++++++ .../test/snakemake/snakemake_bad_1.smk | 12 ++++++++++++ .../test/snakemake/snakemake_good_1.smk | 12 ++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 .automation/test/snakemake/README.md create mode 100644 .automation/test/snakemake/snakemake_bad_1.smk create mode 100644 .automation/test/snakemake/snakemake_good_1.smk diff --git a/.automation/test/snakemake/README.md b/.automation/test/snakemake/README.md new file mode 100644 index 00000000..e25faf23 --- /dev/null +++ b/.automation/test/snakemake/README.md @@ -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. diff --git a/.automation/test/snakemake/snakemake_bad_1.smk b/.automation/test/snakemake/snakemake_bad_1.smk new file mode 100644 index 00000000..abf043e7 --- /dev/null +++ b/.automation/test/snakemake/snakemake_bad_1.smk @@ -0,0 +1,12 @@ +rule all: + input: + file1='result.txt', + + +rule simulation: + output: + file1="result.txt" + shell: + """ + touch {output} + """ diff --git a/.automation/test/snakemake/snakemake_good_1.smk b/.automation/test/snakemake/snakemake_good_1.smk new file mode 100644 index 00000000..7c809a89 --- /dev/null +++ b/.automation/test/snakemake/snakemake_good_1.smk @@ -0,0 +1,12 @@ +rule all: + input: + file1="result.txt", + + +rule simulation: + output: + file1="result.txt", + shell: + """ + touch {output} + """