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

Verify task error says about "lines" when counterType is Branch or Instruction #211

Closed
AleksDanil opened this issue Aug 17, 2022 · 0 comments · Fixed by #214
Closed

Verify task error says about "lines" when counterType is Branch or Instruction #211

AleksDanil opened this issue Aug 17, 2022 · 0 comments · Fixed by #214
Labels

Comments

@AleksDanil
Copy link

0.6.0-Beta

Set counter for verify task INSTRUCTION or BRANCH:

verify {
            ...
                bound {
                    minValue = 20
                    maxValue = 20
                    counter = kotlinx.kover.api.CounterType.BRANCH 
                    valueType = kotlinx.kover.api.VerificationValueType.COVERED_COUNT
                }
            }

In case of error it will always be about lines:
Rule 'test' violated: missed lines percentage is 75.000000, but expected maximum is 20
Expected:
Rule 'test' violated: missed instructions/branches percentage is 75.000000, but expected maximum is 20

shanshin added a commit that referenced this issue Aug 22, 2022
shanshin added a commit that referenced this issue Aug 23, 2022
- IntelliJ Engine version upgraded to 1.0.680
- added tests on verification error

Fixes #210, #211,  #212
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants