Skip to content

Update some docs still referencing Sputnik and JUnit runner and clarify situation of Jupiter extensions#2322

Open
Vampire wants to merge 2 commits intomasterfrom
vampire/doc-updates
Open

Update some docs still referencing Sputnik and JUnit runner and clarify situation of Jupiter extensions#2322
Vampire wants to merge 2 commits intomasterfrom
vampire/doc-updates

Conversation

@Vampire
Copy link
Member

@Vampire Vampire commented Mar 15, 2026

Summary by CodeRabbit

  • Documentation
    • Clarified JUnit Platform integration wording across guides.
    • Expanded Third‑Party Extensions guidance, noting community maintenance and possible incompleteness.
    • Added a NOTE on incompatibilities and terminology differences between JUnit Jupiter and Spock extensions, with alternatives and mention of a partly functioning third‑party integration.
    • Recommended preferring native Spock extensions or porting Jupiter ones.
    • Expanded JUnit lifecycle comparison.

Copy link
Member Author

Vampire commented Mar 15, 2026

@coderabbitai
Copy link

coderabbitai bot commented Mar 15, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 5c46ceda-93a6-4d4d-8365-79527f3d00ba

📥 Commits

Reviewing files that changed from the base of the PR and between 9c9273f and 0287abe.

📒 Files selected for processing (4)
  • docs/extensions.adoc
  • docs/introduction.adoc
  • docs/parallel_execution.adoc
  • docs/spock_primer.adoc
✅ Files skipped from review due to trivial changes (3)
  • docs/introduction.adoc
  • docs/extensions.adoc
  • docs/spock_primer.adoc
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/parallel_execution.adoc

📝 Walkthrough

Walkthrough

Documentation updates: clarified Spock’s JUnit Platform engine wording, expanded guidance and a NOTE about third‑party extensions and JUnit Jupiter compatibility, adjusted primer terminology and @Testable wording, extended JUnit lifecycle mappings, and fixed a minor whitespace in a parallel‑execution NOTE.

Changes

Cohort / File(s) Summary
Introduction
docs/introduction.adoc
Replaced “JUnit runner” with “JUnit Platform engine” and reflowed the adjacent compatibility sentence.
Primer & JUnit mapping
docs/spock_primer.adoc
Updated “system under specification” phrasing; replaced Sputnik/JUnit runner wording with @Testable / JUnit Platform semantics; expanded JUnit lifecycle table to show both JUnit 4 and JUnit 5 equivalents.
Extensions guidance
docs/extensions.adoc, docs/spock_primer.adoc
Added community‑wiki disclaimer and a NOTE clarifying that JUnit Jupiter extensions do not work in Spock by default; provided options (seek Spock variants, request ports, find Spock‑compatible alternatives, or port) and mentioned a partly functioning third‑party Jupiter integration (not maintained/recommended).
Parallel execution minor fix
docs/parallel_execution.adoc
Removed extra double space before the JUnit Jupiter URL in a NOTE (formatting/whitespace only).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • AndreasTu

Poem

🐇 I nibble notes in margins neat,
I hop through docs on tiny feet.
Platform phrases now align,
Extensions flagged in dotted line.
A joyful hop — the pages sweet!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main changes: updating documentation that references deprecated Sputnik/JUnit runner and clarifying Jupiter extensions support.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch vampire/doc-updates

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@greptile-apps
Copy link

greptile-apps bot commented Mar 15, 2026

Greptile Summary

Documentation-only PR that modernizes references from the legacy Sputnik/JUnit runner terminology to the current JUnit Platform engine terminology, and adds guidance on JUnit Jupiter extension compatibility with Spock.

  • Replaces "JUnit runner" / "Sputnik" references with "JUnit Platform engine" in introduction.adoc and spock_primer.adoc
  • Updates the Spock-to-JUnit comparison table to include both JUnit 4 (@Before) and Jupiter (@BeforeEach) annotations
  • Adds a detailed NOTE block (in both spock_primer.adoc and extensions.adoc) clarifying that JUnit Jupiter extensions do not work in Spock out of the box
  • Expands the Third-Party Extensions section with a community-driven disclaimer
  • Fixes minor whitespace and punctuation issues
  • Issue found: Typo "featurews" introduced in spock_primer.adoc line 851 (should be "features")

Confidence Score: 4/5

  • This documentation-only PR is safe to merge after fixing one typo.
  • All changes are confined to AsciiDoc documentation files with no code impact. The content updates are accurate and improve clarity. One typo ("featurews") was introduced that should be fixed before merging.
  • docs/spock_primer.adoc has a typo on line 851 ("featurews" → "features")

Important Files Changed

Filename Overview
docs/extensions.adoc Expands Third-Party Extensions section with community-driven disclaimer and a NOTE block clarifying JUnit Jupiter vs Spock extension compatibility. No issues found.
docs/introduction.adoc Replaces outdated "JUnit runner" reference with "JUnit Platform engine". Clean, accurate change.
docs/parallel_execution.adoc Removes an extra space before a URL. Trivial whitespace fix, no issues.
docs/spock_primer.adoc Replaces Sputnik/JUnit runner references with JUnit Platform terminology, updates JUnit comparison table with Jupiter annotations, adds JUnit Jupiter extensions NOTE. Contains a typo: "featurews" on the @IgnoreRest line.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["introduction.adoc"] -->|"Updated: JUnit runner → JUnit Platform engine"| B["Terminology Modernization"]
    C["spock_primer.adoc"] -->|"Updated: Sputnik → @Testable / JUnit Platform"| B
    C -->|"Updated: JUnit comparison table with Jupiter annotations"| D["JUnit 4 + Jupiter Annotations"]
    C -->|"Added: JUnit Jupiter extensions NOTE"| E["Jupiter Extension Compatibility Warning"]
    F["extensions.adoc"] -->|"Added: JUnit Jupiter extensions NOTE"| E
    F -->|"Added: community-driven disclaimer"| G["Third-Party Extensions Clarity"]
    H["parallel_execution.adoc"] -->|"Fixed: extra whitespace"| I["Minor Cleanup"]
Loading

Last reviewed commit: 41e1127

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
docs/spock_primer.adoc (1)

860-875: Consider linking to shared extension guidance instead of duplicating the full NOTE.

This block substantially duplicates the third-party/Jupiter guidance already present in docs/extensions.adoc (Line 794-809), which may drift over time.

Refactor direction
-[NOTE]
---
-...long Jupiter/3rd-party compatibility note...
---
+[NOTE]
+--
+For details on JUnit Jupiter extension compatibility and third-party Spock extension recommendations, see
+<<extensions.adoc#extensions,Extensions>> and especially the
+<<extensions.adoc#third-party-extensions,Third-Party Extensions>> section.
+--
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/spock_primer.adoc` around lines 860 - 875, The NOTE about JUnit
Jupiter/third‑party integration is a duplicate of the guidance in the shared
extensions doc; remove this duplicated NOTE block in docs/spock_primer.adoc and
replace it with a cross‑reference to the canonical guidance (the existing
"Extensions" / third‑party Jupiter guidance section) so the content is
maintained in one place; ensure the referenced section/anchor exists and update
the link text to clearly point readers to the shared guidance instead of copying
the full paragraph.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/spock_primer.adoc`:
- Line 851: Typo in docs: update the sentence describing the `@IgnoreRest`
annotation in docs/spock_primer.adoc so "featurews" is corrected to "features"
(the line that reads "`@IgnoreRest`:: Any feature method carrying this
annotation will be executed, all others will be ignored. Useful for quickly
running just a few featurews."). Leave the rest of the sentence and punctuation
unchanged and only replace the misspelled word.

---

Nitpick comments:
In `@docs/spock_primer.adoc`:
- Around line 860-875: The NOTE about JUnit Jupiter/third‑party integration is a
duplicate of the guidance in the shared extensions doc; remove this duplicated
NOTE block in docs/spock_primer.adoc and replace it with a cross‑reference to
the canonical guidance (the existing "Extensions" / third‑party Jupiter guidance
section) so the content is maintained in one place; ensure the referenced
section/anchor exists and update the link text to clearly point readers to the
shared guidance instead of copying the full paragraph.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 22f534db-55dc-43fb-b303-ebf2b8d5e550

📥 Commits

Reviewing files that changed from the base of the PR and between 9c6342c and 41e1127.

📒 Files selected for processing (4)
  • docs/extensions.adoc
  • docs/introduction.adoc
  • docs/parallel_execution.adoc
  • docs/spock_primer.adoc

@Vampire Vampire force-pushed the vampire/doc-updates branch from 41e1127 to ca3745f Compare March 15, 2026 02:48
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

♻️ Duplicate comments (1)
docs/spock_primer.adoc (1)

851-851: ⚠️ Potential issue | 🟡 Minor

Fix the typo "featurews" → "features".

While updating this line's description, the existing typo "featurews" should also be corrected to "features". A past review already flagged this typo.

🔤 Proposed fix
-`@IgnoreRest`:: Any feature method carrying this annotation will be executed, all others will be ignored. Useful for quickly running just a few featurews.
+`@IgnoreRest`:: Any feature method carrying this annotation will be executed, all others will be ignored. Useful for quickly running just a few features.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/spock_primer.adoc` at line 851, Typo in the `@IgnoreRest` docstring:
replace "featurews" with "features" and update the sentence to read
"`@IgnoreRest`:: Any feature method carrying this annotation will be executed,
all others will be ignored. Useful for quickly running just a few features."
Locate the line describing `@IgnoreRest` and correct the misspelling and ensure
the sentence grammar matches the proposed text.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@docs/spock_primer.adoc`:
- Line 851: Typo in the `@IgnoreRest` docstring: replace "featurews" with
"features" and update the sentence to read "`@IgnoreRest`:: Any feature method
carrying this annotation will be executed, all others will be ignored. Useful
for quickly running just a few features." Locate the line describing
`@IgnoreRest` and correct the misspelling and ensure the sentence grammar
matches the proposed text.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 98538821-5cfe-4847-a274-bdb3e543397d

📥 Commits

Reviewing files that changed from the base of the PR and between 41e1127 and ca3745f.

📒 Files selected for processing (4)
  • docs/extensions.adoc
  • docs/introduction.adoc
  • docs/parallel_execution.adoc
  • docs/spock_primer.adoc
🚧 Files skipped from review as they are similar to previous changes (3)
  • docs/extensions.adoc
  • docs/parallel_execution.adoc
  • docs/introduction.adoc

@codecov
Copy link

codecov bot commented Mar 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.16%. Comparing base (8d380cc) to head (0287abe).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2322   +/-   ##
=========================================
  Coverage     82.16%   82.16%           
  Complexity     4822     4822           
=========================================
  Files           472      472           
  Lines         15036    15036           
  Branches       1905     1905           
=========================================
+ Hits          12354    12355    +1     
  Misses         1989     1989           
+ Partials        693      692    -1     

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

AndreasTu
AndreasTu previously approved these changes Mar 15, 2026
Go to the <<extensions.adoc#extensions,Extensions>> chapter to learn how to implement your own directives and extensions,
to learn where to find some of the 3rd party extensions, and to learn about all built-in extensions and directives.

[NOTE]
Copy link
Member

Choose a reason for hiding this comment

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

Why do we include this twice?

Copy link
Member Author

Choose a reason for hiding this comment

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

I feared you'd ask that. :-D

I think it is important information to reduce the amount of issues reported in the style of "this JUnit extension does not work with Spock".

Topic-wise I'd say it more belongs to the 3rd-party extensions section, as it is about 3rd-party "extensions", even though they are no Spock extensions but that is what users can wrongly assume easily and also in the Wiki article they might find a replacement or the bridging-extension.

But I think if a user reads the docs at all, then it is more likely that they read the Spock Primer, at least to start with, so wanted to increase visibility of this admonition by having it there too.

The Extensions chapter in the Spock primer is anyway just an information duplication chapter, as it lists an excerpt of the built-in extensions with short description (and even states or at least implies that those are the only ones built-in). So I thought it might be a good idea to have the note there a second time.

@Vampire Vampire force-pushed the vampire/doc-updates branch from 9c9273f to 0287abe Compare March 21, 2026 21:35
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.

3 participants