-
Notifications
You must be signed in to change notification settings - Fork 72
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
Use AsciiDoc snippets to include code snippets in documentation #334
Use AsciiDoc snippets to include code snippets in documentation #334
Conversation
Signed-off-by: Mihaly Verhas <misi.verhas@gmail.com>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
|
I really like this approach to showing code snippets because we can always be sure that they actually work. @Bukama's concerns are valid, though. Tests and code snippets have very different concerns and we should hence separate them. I propose to create a new source set If possible, we could even use Spotless to limit line length to 60 chars (if we can have different configurations for different folders - I think we already had that request once). |
Also, @Michael1993 can you please open an issue, so we can discuss there? |
I opened #335 if that's OK? |
Any motivation to further work on this @Michael1993? |
Whoops, I forgot about this. I'll do some work on it in December. |
…into lab/adoc-snippet-handling
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. The extra ceremony of creating, tagging, and referencing the source file is non-trivial, though. I think the benefits are worth it, but we could discuss whether short snippets (like, three lines or so) could be allowed in the Asciidoc or whether this is the new standard for all tests, regardless of complexity.
demo/src/test/java/org/junitpioneer/jupiter/ReportEntryExtensionTests.java
Outdated
Show resolved
Hide resolved
…into lab/adoc-snippet-handling
Co-authored-by: Simon Schrottner <simon.schrottner@gmail.com>
Co-authored-by: Simon Schrottner <simon.schrottner@gmail.com>
The branch is ready for review - however if it gets merged, there should be another PR that migrates the rest of the docs to the new 'system'. |
src/demo/java/org/junitpioneer/jupiter/ReportEntryExtensionTests.java
Outdated
Show resolved
Hide resolved
Can you create an issue for that? |
|
Can you extend
Proposed commit message:
|
closes #335
Signed-off-by: Mihaly Verhas misi.verhas@gmail.com
I hereby agree to the terms of the JUnit Pioneer Contributor License Agreement.