052bdbb4e3afa98a7fe7ffb240587f19caada4ea,tests/python/pants_test/backend/python/tasks/test_pytest_run.py,PytestTest,test_coverage_issue_5314_primary_source_root,#PytestTest#,522

Before Change


  def test_coverage_issue_5314_primary_source_root(self):
    self.assertFalse(os.path.isfile(self.coverage_data_file()))

    self.run_tests(targets=[self.app], coverage="app")

    app_path = os.path.join(self.build_root, "app", "app.py")
    all_statements, not_run_statements = self.load_coverage_data_for(app_path)
    self.assertEqual([1, 4, 5], all_statements)

After Change


  def test_coverage_issue_5314_primary_source_root(self):
    self.assertFalse(os.path.isfile(self.coverage_data_file()))

    context = self.run_tests(targets=[self.app], coverage="app")

    app_path = os.path.join(self.build_root, "app", "app.py")
    all_statements, not_run_statements = self.load_coverage_data_for(context, app_path)
    self.assertEqual([1, 4, 5], all_statements)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 052bdbb4e3afa98a7fe7ffb240587f19caada4ea
Time: 2018-03-01
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/backend/python/tasks/test_pytest_run.py
Class Name: PytestTest
Method Name: test_coverage_issue_5314_primary_source_root


Project Name: pantsbuild/pants
Commit Name: 052bdbb4e3afa98a7fe7ffb240587f19caada4ea
Time: 2018-03-01
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/backend/python/tasks/test_pytest_run.py
Class Name: PytestTest
Method Name: test_coverage_issue_5314_all_source_roots


Project Name: pantsbuild/pants
Commit Name: 052bdbb4e3afa98a7fe7ffb240587f19caada4ea
Time: 2018-03-01
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/backend/python/tasks/test_pytest_run.py
Class Name: PytestTest
Method Name: test_coverage_issue_5314_secondary_source_root


Project Name: datascienceinc/Skater
Commit Name: 37797924498737ece5060d7702cf8249971d4ff5
Time: 2017-04-27
Author: aikramer2@gmail.com
File Name: tests/all_tests.py
Class Name:
Method Name: