Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tests with coverage on CI #2141

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Run tests with coverage on CI #2141

wants to merge 1 commit into from

Conversation

denik
Copy link
Contributor

@denik denik commented Jan 14, 2025

Combine 'make cover' and 'make acc-cover' into single command. They still write coverage into different files -- it would be useful to see separate coverage numbers.

@denik denik temporarily deployed to test-trigger-is January 14, 2025 14:39 — with GitHub Actions Inactive
@denik denik force-pushed the denik/coverage-ci branch from 843ccf6 to e9acfbf Compare January 15, 2025 09:49
@denik denik temporarily deployed to test-trigger-is January 15, 2025 09:49 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is January 15, 2025 09:53 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is January 15, 2025 10:15 — with GitHub Actions Inactive
denik added a commit that referenced this pull request Jan 15, 2025
## Changes
When setting up PATH in tests, put desired entry first but keep the rest
as well. Otherwise it fails on Windows

```
D:/a/cli/cli/libs/exec/exec_test.go:108
Error: Received unexpected error:
exit status 0xc0000135
```

Explanation from Claude:
> The error code 0xc0000135 is a Windows error indicating "Unable to
locate DLL"
> When code coverage is enabled, Go instruments the binary with coverage
tracking code, which requires additional DLL dependencies on Windows.

## Tests
Separate draft PR with coverage enabled on CI:
#2141
@denik denik force-pushed the denik/coverage-ci branch from 840dc2e to ef634a9 Compare January 15, 2025 17:10
@denik denik temporarily deployed to test-trigger-is January 15, 2025 17:10 — with GitHub Actions Inactive
Combine 'make cover' and 'make acc-cover' into single command.
They still write coverage into different files -- it would be useful to see separate coverage numbers.
@denik denik force-pushed the denik/coverage-ci branch from ef634a9 to 6be556e Compare January 16, 2025 09:45
@denik denik temporarily deployed to test-trigger-is January 16, 2025 09:46 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant