Skip to content

feat: add support for optional YAML frontmatter in test text files - #6

Merged
ChrisAkre merged 3 commits into
developfrom
feat/yaml-frontmatter-9005917620976336464
Apr 19, 2026
Merged

ChrisAkre merged 3 commits into
developfrom
feat/yaml-frontmatter-9005917620976336464

Conversation

@ChrisAkre

Copy link
Copy Markdown
Owner

Added support for parsing optional YAML frontmatter at the top of test files using eo-yaml.

  • Added eo-yaml dependency to pom.xml.
  • Parses test-name and description from expected files, or case-name and description from failing/matching files.
  • Added URIs to the dynamic tests for expected files and failing/matching cases.
  • Uses the parsed values to format test case names in JUnit output.

PR created automatically by Jules for task 9005917620976336464 started by @ChrisAkre

Added support for parsing optional YAML frontmatter at the top of test
files using `eo-yaml`. The parsed values can override the dynamically
generated `test-name` and `case-name` for test cases. Also extracts
`description` if present. Includes dynamic test URIs for proper test
linking in IDEs.

Co-authored-by: ChrisAkre <256899919+ChrisAkre@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Comment thread cp.txt Outdated
@@ -0,0 +1 @@
/home/jules/.m2/repository/com/amihaiemil/web/eo-yaml/8.0.6/eo-yaml-8.0.6.jar:/home/jules/.m2/repository/javax/json/javax.json-api/1.1.4/javax.json-api-1.1.4.jar:/home/jules/.m2/repository/io/github/java-diff-utils/java-diff-utils/4.12/java-diff-utils-4.12.jar:/home/jules/.m2/repository/org/opentest4j/opentest4j/1.3.0/opentest4j-1.3.0.jar:/home/jules/.m2/repository/org/assertj/assertj-core/3.24.2/assertj-core-3.24.2.jar:/home/jules/.m2/repository/net/bytebuddy/byte-buddy/1.12.21/byte-buddy-1.12.21.jar:/home/jules/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.9.2/junit-jupiter-api-5.9.2.jar:/home/jules/.m2/repository/org/junit/platform/junit-platform-commons/1.9.2/junit-platform-commons-1.9.2.jar:/home/jules/.m2/repository/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar:/home/jules/.m2/repository/org/junit/jupiter/junit-jupiter-engine/5.9.2/junit-jupiter-engine-5.9.2.jar:/home/jules/.m2/repository/org/junit/platform/junit-platform-engine/1.9.2/junit-platform-engine-1.9.2.jar No newline at end of file

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

delete this file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Deleted.

Comment thread modify.py Outdated
@@ -0,0 +1,59 @@
import re

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

delete this file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Deleted.

Comment thread modify2.py Outdated
@@ -0,0 +1,116 @@
import re

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

delete this file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Deleted.

Comment thread modify3.py Outdated
@@ -0,0 +1,81 @@
import re

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

delete this file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Deleted.

Comment thread modify4.py Outdated
@@ -0,0 +1,9 @@
import re

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

delete this file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Deleted.

Comment thread TestFrontmatter.java Outdated
@@ -0,0 +1,20 @@
import com.amihaiemil.eoyaml.Yaml;

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Don't test the test code by writing tests for the test code. Test the test code by adding frontmatter to an existing set of tests. Specifically add frontmatter to the tests in the src/test/resources/sql tests.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Added YAML frontmatter to the basic SQL test cases to test the new functionality with real data, and deleted the test scripts.

Comment thread TestJunit.java Outdated
@@ -0,0 +1,14 @@
import org.junit.jupiter.api.DynamicTest;

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

delete this file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Deleted.

Comment thread TestJunit2.java Outdated
@@ -0,0 +1,13 @@
import org.junit.jupiter.api.DynamicTest;

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

delete this file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Deleted.

Comment thread TestYaml.java Outdated
@@ -0,0 +1,12 @@
import com.amihaiemil.eoyaml.Yaml;

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

delete this file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Deleted.

Comment thread TestYaml.class Outdated

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

delete this file.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Deleted.

google-labs-jules Bot and others added 2 commits April 19, 2026 16:47
Deleted temporary script files used during development and updated the basic SQL tests in `src/test/resources/sql/` to include YAML frontmatter, testing the new feature.

Co-authored-by: ChrisAkre <256899919+ChrisAkre@users.noreply.github.com>
Deleted TestFrontmatter.class and TestJunit2.class from the root directory that were accidentally left over from the temporary script testing.

Co-authored-by: ChrisAkre <256899919+ChrisAkre@users.noreply.github.com>
@ChrisAkre
ChrisAkre merged commit 1ff6d12 into develop Apr 19, 2026
2 checks passed
@ChrisAkre
ChrisAkre deleted the feat/yaml-frontmatter-9005917620976336464 branch April 19, 2026 16:53
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.

1 participant