# Workflow with a job that fails
# Tests error detection and reporting

rule all:
    input:
        "output/success.txt",
        "output/will_fail.txt"

rule success_job:
    output:
        "output/success.txt"
    shell:
        """
        echo "This job succeeds" > {output}
        """

rule failing_job:
    output:
        "output/will_fail.txt"
    shell:
        """
        echo "About to fail..."
        exit 1
        """
