Skip to content

The documentation of junit fitness runner lacks proper import #1612

Description

@Chengpu0707

Describe the bug

The code link https://github.com/unclebob/fitnesse/blob/master/test/fitnesse/junit/FitNesseRunnerTest.java in the documentation https://fitnesse.org/FitNesse/UserGuide/WritingAcceptanceTests/RunningFromJunit.html lacks the following import when using fitnesse-standalone.jar as a java project reference:

import fitnesse.junit.FitNesseRunner;

To Reproduce
Steps to reproduce the behavior:

  1. Start a new java project in MS VsCode:
  2. Add fitnesse-standalone.jar as project reference.
  3. Copy-n-paste code from https://github.com/unclebob/fitnesse/blob/master/test/fitnesse/junit/FitNesseRunnerTest.java
  4. The code fails to compile for unknown reference.

Expected behavior

All examples should work out of the box.

Screenshots

Sample Wiki Structure/content

Stack Trace

Configuration:

  • OS: Windows 11
  • Browser MS VsCode
  • Version [e.g. 20260313] of FitNesse
  • Test System: N/A
  • Plugins in use: N/A

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions