Skip to content

Commit

Permalink
fix: Pass correct coverage path for generating previous test results (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
thelukewalton authored Jul 23, 2024
1 parent b77cf7b commit bdb334b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113426,7 +113426,7 @@ exports.retrievePreviousCoverage = retrievePreviousCoverage;
const generateOldCoverage = async (prev_sha, current_sha, coverage_directory) => {
const artifact = new artifact_1.DefaultArtifactClient();
await (0, exec_1.exec)(`git checkout ${prev_sha}`);
await (0, exec_1.exec)("flutter test --coverage");
await (0, exec_1.exec)(`flutter test --coverage --coverage-path ${coverage_directory}/lcov.info`);
const report = await (0, utils_1.importLcov)(coverage_directory);
const { id, size } = await artifact.uploadArtifact(ARTIFACT_NAME + "-" + prev_sha, [`${coverage_directory}/${utils_1.COV_FILE}`], ".", {});
(0, core_2.debug)(`Artifact uploaded with id: ${id} and size: ${size}`);
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/prevCoverage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const generateOldCoverage = async (
): Promise<Lcov> => {
const artifact = new DefaultArtifactClient();
await exec(`git checkout ${prev_sha}`);
await exec("flutter test --coverage");
await exec(`flutter test --coverage --coverage-path ${coverage_directory}/lcov.info`);
const report = await importLcov(coverage_directory);
const { id, size } = await artifact.uploadArtifact(
ARTIFACT_NAME + "-" + prev_sha,
Expand Down

0 comments on commit bdb334b

Please sign in to comment.