Closed justinmk3 closed 1 month ago
now that coverage is uploading, it looks like our codewhisperer coverage has decreased.
Possibly, since we moved the tests into packages/amazonq/, the lcov.info file is getting overwritten by the last test run?
lcov.info
codecoverage for each package should be uploaded. Maybe this can be done by specifying an argument to c8, so that each package has a separate lcov file? https://github.com/aws/aws-toolkit-vscode/blob/eae810bf6dad43d4e43e80682ca978e063b5eefe/packages/amazonq/package.json#L62-L63
c8
e.g. c8 --foo ../../lcov-amazonq.info
c8 --foo ../../lcov-amazonq.info
then in our codecov upload steps, we specify the three expected files:
lcov-amazonq.info lcov-toolkit.info lcov-core.info
Closed by https://github.com/aws/aws-toolkit-vscode/pull/5334
Problem
now that coverage is uploading, it looks like our codewhisperer coverage has decreased.
Possibly, since we moved the tests into packages/amazonq/, the
lcov.info
file is getting overwritten by the last test run?Expected behavior
codecoverage for each package should be uploaded. Maybe this can be done by specifying an argument to
c8
, so that each package has a separate lcov file? https://github.com/aws/aws-toolkit-vscode/blob/eae810bf6dad43d4e43e80682ca978e063b5eefe/packages/amazonq/package.json#L62-L63e.g.
c8 --foo ../../lcov-amazonq.info
then in our codecov upload steps, we specify the three expected files: