summaryrefslogtreecommitdiff
path: root/tests/farm/run/run_xxx.py
blob: 1db5b0d0c657a8528e33d145b87f1b47fe4fb01a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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_xxx")
run("""
    coverage run xxx
    coverage report
    """, rundir="out_xxx", outfile="stdout.txt")
contains("out_xxx/stdout.txt",
        "xxx: 3 4 0 7",
        "\nxxx ",           # The reporting line for xxx
        " 7      1    86%"  # The reporting data for xxx
        )
doesnt_contain("out_xxx/stdout.txt", "No such file or directory")
clean("out_xxx")