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

Markdown support for java #377

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

madhoks
Copy link

@madhoks madhoks commented Mar 5, 2025

🤔 What's changed?

Adding Markdown support for Java. This will enable to define BDDs in Markdown which just simply render better.

⚡️ What's your motivation?

Address #100 .
A new feature.
I love BDD, (well love may be a strong word, but ... you get the gist), and I love seeing BDDs in Markdown.
This was already supported in javascript so seemed simple enough to replicate to Java.

🏷️ What kind of change is this?

  • ⚡ New feature (non-breaking change which adds new behaviour)

♻️ Anything particular you want feedback on?

General code feedback.

📋 Checklist:

Since this is a WIP, some items that need to be checked are not checked yet.

  • 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.

Added support for Feature line parsing in Markdown
matchFeatureLine enhanced to support dialect, and indent,
Implemented setTokenMatched
All headerLines done.
Feature, Rule, Background, Examples, Scenarios and ScenarioOutline
updated the razor template
updated related classes with the new Parser constructor
added testcases
Update to make file to include markdowns
GenerateTokens updated to pass the right TokenMatcher based on the file extension
Update to MarkdownTokenMatcher and test based on local testing
@madhoks madhoks marked this pull request as draft March 5, 2025 14:39
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