-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Unclear if exclude paths working correctly #102
Comments
hey i am not really sure what is happening here, but override and exclude rules are working correctly in all my repositories. does in the output that you provided, to enure that rule is actually working, try excluding some specif file. for example have exclude rule with |
Yes, it does. With Issues with:
broker/cmd/main.go 0%
::error file=broker/models/mssql/Xm.go,line=1::File test coverage below threshold of (70%)
::error file=broker/cmd/main.go,line=1::File test coverage below threshold of (70%) I'm running |
I might have to add that the folder I'm executing the command is a subfolder of a monorepo but that shouldn't matter AFAIK. Repo looks like this | repo-root/
|-- broker/ # go-test-coverage executed in this folder
|---- go.mod
|---- .testcoverage.yml
|---- cmd/
|---- models/
|-- other-service/ Edit: And maybe it's a MacOS 14.6.1 thing? Running the binary on M3. |
i am really not sure. if you can clone repo and run it as source everything happens here. |
I'll try it on a minimal repo, plus from source, and report back. |
hello @kelzenberg, i would like to kindly follow up on this issue. do the exclude paths work for you? |
I'm trying to run the go-test-coverage but it constantly ignores my excluded paths/files.
./.testcoverage.yml
Command
Output
As you can see, the overridden threshold for $root/cmd files is ignored and the $root/models folder is not excluded. I also tried the following exclude path regex for models:
What am I missing here?
The text was updated successfully, but these errors were encountered: