Commit 53705872 authored by Sander Bollen's avatar Sander Bollen
Browse files

add a few tests

parent 2417f521
......@@ -12,7 +12,7 @@ if OUT_DIR is None:
REFERENCE = config.get("REFERENCE")
if REFERENCE is None:
raise ValueError("You must set --config REFERENCE=<path>")
if not Path(reference).exists:
if not Path(REFERENCE).exists():
raise FileNotFoundError("Reference file does not exist.")
JAVA = config.get("JAVA") # TODO: should be handled by conda?!
......
- name
\ No newline at end of file
- name: test-no-output-dir
command: snakemake -n -r -p -s Snakefile
exit_code: 1
stdout:
contains:
- "You must set --config OUT_DIR=<path>"
- name: test-no-reference
command: snakemake -n -r -p -s Snakefile --config OUTPUT_DIR=/teststtest/
exit_code: 1
stdout:
contains:
- "You must set --config REFERENCE=<path>"
- name: test-reference-does-not-exist
command: snakemake -n -r -p -s Snakefile --config OUTPUT_DIR=/teststtest/ REFERENCE=/very/unlikely/to/exist
exit_code: 1
stdout:
contains:
- "Reference file does not exist"
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment