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

AsserationError: Coverage report file was not updated. #244

Open
magnus1945 opened this issue Dec 6, 2024 · 0 comments
Open

AsserationError: Coverage report file was not updated. #244

magnus1945 opened this issue Dec 6, 2024 · 0 comments

Comments

@magnus1945
Copy link

magnus1945 commented Dec 6, 2024

2024-12-06 11:17:34,689 - cover_agent.UnitTestValidator - INFO - Running build/test command to generate coverage report: "poetry run pytest /Users/i/Desktop/pythonProject/tests/tutorial_test.py --cov=/Users/i/Desktop/pythonProject/login_page.py --cov-report=xml:coverage.xml --cov-report=term --log-cli-level=INFO --timeout=100"

2024-12-06 11:17:37,870 - cover_agent.CoverageProcessor - INFO - Verifying coverage report at path: /Users/i/qodo-cover/coverage.xml
2024-12-06 11:17:37,870 - cover_agent.CoverageProcessor - INFO - Test command timestamp: 1733469454695 ms
2024-12-06 11:17:37,871 - cover_agent.CoverageProcessor - INFO - Coverage report modification time: 1733392487671 ms
2024-12-06 11:17:37,871 - cover_agent.UnitTestValidator - ERROR - Error in coverage processing: Fatal: The coverage report file was not updated after the test command. file_mod_time_ms: 1733392487671, time_of_test_command: 1733469454695, Difference: -76967024 ms.

Any ideas how I can resolve this
I tried allowing small tolerance between the two timestamps. To account for the small delay between the test command execution and the file modification update.

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