run_xxx.py 519 B

12345678910111213141516
  1. # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
  2. # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
  3. copy("src", "out")
  4. run("""
  5. coverage run xxx
  6. coverage report
  7. """, rundir="out", outfile="stdout.txt")
  8. contains("out/stdout.txt",
  9. "xxx: 3 4 0 7",
  10. "\nxxx ", # The reporting line for xxx
  11. " 7 1 86%" # The reporting data for xxx
  12. )
  13. doesnt_contain("out/stdout.txt", "No such file or directory")
  14. clean("out")