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

Failed test output improvement #23

Merged
merged 8 commits into from
Oct 21, 2024

Conversation

Haibo-S
Copy link
Contributor

@Haibo-S Haibo-S commented Aug 29, 2024

This pull request enhances the failure test output by providing more detailed information. Instead of just displaying a diff with line numbers, the output now includes the failed file, line number, directory, and the surrounding five lines of code. The improvement is implemented in build.gradle via a new afterTest block, and it supports multiple test failures.

How to Test: Modify test results in src/test/resources/jspecify-conformance-test-report.txt (e.g., FAIL to PASS or vice versa) and run ./gradlew test.

@wmdietl wmdietl changed the title Test Failure Output Improvement Failed test output improvement Oct 21, 2024
Copy link
Member

@wmdietl wmdietl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Sorry for the delay.

build.gradle Outdated Show resolved Hide resolved
@wmdietl wmdietl merged commit 85f4a5e into eisop:main Oct 21, 2024
3 checks passed
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.

2 participants