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

Coverage drops during test execution #66

Open
Lewisprince opened this issue Apr 3, 2024 · 0 comments
Open

Coverage drops during test execution #66

Lewisprince opened this issue Apr 3, 2024 · 0 comments

Comments

@Lewisprince
Copy link

I am using an end-to-end UI testing tool (Crawljax https://github.com/crawljax/crawljax) to test some web pages. I instrumented the source code using Istanbul and collected coverage through Istanbul-middleware after each time a UI action was fired. The test process continues for 30 minutes and the coverage is expected to keep increasing for the whole test process.

However, I found that the coverage drops several times while testing an app Pagekit (https://github.com/pagekit/pagekit). I found this is because the code is not fully counted early in the test process, causing the denominator to change (e.g., 54.92%, 402/732 --> 49.55% 546/1102).

I do not know why this happens since I instrumented the apps from their source code, and all code should be counted at the very beginning. Could anyone help me?

Best regards,
Lewis

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

No branches or pull requests

1 participant