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

Get JavaScript to parity with Java #62

Merged
merged 20 commits into from
Nov 14, 2024
Merged

Conversation

davidjgoss
Copy link
Contributor

@davidjgoss davidjgoss commented Nov 11, 2024

🤔 What's changed?

This adds new methods to the JavaScript implementation to match the ones recently added for Java.

We're also making a couple of changes on the Java side for the better:

  • Fix a typo in one method name
  • Return a status map with all statuses as keys, not just the non-zero ones
  • Account for retries when finding started test cases

Finally, update the Node.js versions we test with to match the current LTS landscape.

⚡️ What's your motivation?

These methods will help drive the test case-centric reporting needed for the JUnit formatter and the reimagined HTML formatter. These should be powerful for users creating their own message-based formatters too.

🏷️ What kind of change is this?

  • 📖 Documentation (improvements without changing code)
  • 🐛 Bug fix (non-breaking change which fixes a defect)
  • ⚡ New feature (non-breaking change which adds new behaviour)
  • 💥 Breaking change (incompatible changes to the API)

📋 Checklist:

  • I agree to respect and uphold the Cucumber Community Code of Conduct
  • I've changed the behaviour of the code
    • I have added/updated tests to cover my changes.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • Users should know about my change
    • I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

This text was originally generated from a template, then edited by hand. You can modify the template here.

@davidjgoss davidjgoss marked this pull request as ready for review November 13, 2024 21:00
id: string | number
}

export function comparatorById(a: WithId, b: WithId) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see where this is used.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah never mind. Git collapsed the file that used it.

Copy link
Contributor

@mpkorstanje mpkorstanje left a comment

Choose a reason for hiding this comment

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

LGTM.

@davidjgoss davidjgoss merged commit 5a7556e into main Nov 14, 2024
8 checks passed
@davidjgoss davidjgoss deleted the feat/javascript-java-parity branch November 14, 2024 16:25
@davidjgoss davidjgoss mentioned this pull request Nov 14, 2024
7 tasks
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