<reponame>jmsl31/coverage.py<filename>tests/farm/run/run_xxx.py
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt

copy("src", "out")
run("""
    coverage run xxx
    coverage report
    """, rundir="out", outfile="stdout.txt")
contains("out/stdout.txt",
        "xxx: 3 4 0 7",
        "\nxxx ",           # The reporting line for xxx
        " 7      1    86%"  # The reporting data for xxx
        )
doesnt_contain("out/stdout.txt", "No such file or directory")
clean("out")
