f7b260e965e277d62d2f54847671d06b1763fb21,src/python/pants/backend/python/rules/coverage_integration_test.py,CoverageIntegrationTest,test_coverage_raw,#CoverageIntegrationTest#,215

Before Change


        }

    def test_coverage_raw(self) -> None:
        build_root = get_buildroot()
        with temporary_dir(root_dir=build_root) as tmpdir:
            tmpdir_relative = self._prepare_sources(tmpdir, build_root)
            result = self._run_tests(tmpdir_relative, "--coverage-py-report=raw")
            self._assert_raw_coverage(result, build_root)

After Change


        with self.setup_tmpdir(self.sources) as tmpdir:
            result = self.run_coverage(tmpdir, "--coverage-py-report=raw")
        assert "Wrote raw coverage report to `dist/coverage/python`" in result.stderr
        coverage_data = Path(get_buildroot(), "dist", "coverage", "python", ".coverage")
        assert coverage_data.exists() is True
        conn = sqlite3.connect(coverage_data.as_posix())
        cursor = conn.cursor()
        cursor.execute("SELECT name FROM sqlite_master WHERE type="table"")
        assert {row[0] for row in cursor.fetchall()} == {
            "arc",
            "context",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: f7b260e965e277d62d2f54847671d06b1763fb21
Time: 2020-08-23
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/rules/coverage_integration_test.py
Class Name: CoverageIntegrationTest
Method Name: test_coverage_raw


Project Name: pantsbuild/pants
Commit Name: f652b7ca5dee09e6331187551019921e9c1a6f11
Time: 2013-11-25
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/scala_compile.py
Class Name: ScalaCompile
Method Name: _compute_classes_by_source


Project Name: pantsbuild/pants
Commit Name: 87354a5b766032227e7b25ba93deaa8fd8e3e57f
Time: 2016-02-26
Author: stuhood@gmail.com
File Name: src/python/pants/engine/exp/legacy/commands.py
Class Name:
Method Name: list