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

test: gateway conformance failures are easier to debug #170

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

SgtPooki
Copy link
Member

@SgtPooki SgtPooki commented Jan 28, 2025

Title

test: gateway conformance failures are easier to debug

Description

Makes it easier to debug gateway-conformance failures when a code change causes a test that was previously passing to fail.

Notes & open questions

While working on #169, I ended up having to debug diffs of passing/failing gateway-conformance test outputs to figure out which exact check was failing. This PR makes it easier to debug such failures by printing the test output to the console when a test fails, and allowing us to specify which exact tests we expect to pass.

FYI, i got the names of the passing and failing tests by running:

DEBUG="gateway-conformance*,gateway-conformance*:trace" npm run test >& log.txt

# or 

DEBUG="gateway-conformance*,gateway-conformance*:trace" npm run test -- -g 'TestGatewayIPNSRecord' >& log.txt

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

@SgtPooki SgtPooki marked this pull request as ready for review January 28, 2025 19:34
@SgtPooki SgtPooki requested a review from a team as a code owner January 28, 2025 19:34
@SgtPooki SgtPooki self-assigned this Jan 28, 2025
@SgtPooki SgtPooki merged commit 6a84282 into main Jan 28, 2025
19 checks passed
@SgtPooki SgtPooki deleted the fix/conformance-test-explicitness branch January 28, 2025 19:42
@2color
Copy link
Member

2color commented Jan 29, 2025

Much nicer!

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