69a95616bc5ab498166adf939e5634e6fa2ff0ae,tests/python/pants_test/backend/python/tasks/test_pytest_run.py,PythonTestBuilderTest,test_coverage_paths_option,#PythonTestBuilderTest#,308

Before Change


    self.assertEqual([], not_run_statements)

  def test_coverage_paths_option(self):
    self.assert_paths(coverage="paths:core.py")

  def test_coverage_paths_env(self):
    with environment_as(PANTS_PY_COVERAGE="paths:core.py"):
      self.assert_paths()

After Change



  def test_coverage_paths_option(self):
    self.assertFalse(os.path.isfile(self.coverage_data_file()))
    covered_file = os.path.join(self.build_root, "lib", "core.py")

    self.run_failing_tests(targets=[self.all], failed_targets=[self.all], coverage="paths:core.py")
    all_statements, not_run_statements = self.load_coverage_data(covered_file)
    self.assertEqual([1, 2, 5, 6], all_statements)
    self.assertEqual([], not_run_statements)

  def test_sharding(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 13

Instances


Project Name: pantsbuild/pants
Commit Name: 69a95616bc5ab498166adf939e5634e6fa2ff0ae
Time: 2015-07-10
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/backend/python/tasks/test_pytest_run.py
Class Name: PythonTestBuilderTest
Method Name: test_coverage_paths_option


Project Name: pantsbuild/pants
Commit Name: 69a95616bc5ab498166adf939e5634e6fa2ff0ae
Time: 2015-07-10
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/backend/python/tasks/test_pytest_run.py
Class Name: PythonTestBuilderTest
Method Name: test_coverage_paths_dne_option


Project Name: pantsbuild/pants
Commit Name: 69a95616bc5ab498166adf939e5634e6fa2ff0ae
Time: 2015-07-10
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/backend/python/tasks/test_pytest_run.py
Class Name: PythonTestBuilderTest
Method Name: test_coverage_paths_option


Project Name: pantsbuild/pants
Commit Name: 69a95616bc5ab498166adf939e5634e6fa2ff0ae
Time: 2015-07-10
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/backend/python/tasks/test_pytest_run.py
Class Name: PythonTestBuilderTest
Method Name: test_coverage_modules_dne_option