JBehave

Maven plugin can't identify Scenario classes in src/test/java

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.1
  • Fix Version/s: 2.1.1, 2.2
  • Component/s: Maven Plugin
  • Labels:
    None
  • Environment:
    Maven 2.0.9, Java 1.5.0_16
  • Testcase included:
    yes
  • Number of attachments :
    1

Description

I have the JBehave Maven plugin configured with test scope. In 2.0.1, the plugin was able to pick up the Scenario classes from src/test/java, but in 2.1 it fails to. Please try running the attached maven project with different -Djbehave.version settings to reproduce the error.

$ mvn -Djbehave.version=2.0.1 clean integration-test
...
[INFO] [jbehave:run-scenarios {execution: run-scenarios-listed}]
[INFO] Running scenario binil.scenarios.MyScenario
...

$ mvn -Djbehave.version=2.1 clean integration-test
...
[INFO] [jbehave:run-scenarios {execution: run-scenarios-listed}]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to instantiate scenario 'binil.scenarios.MyScenario'

Embedded error: The scenario 'binil.scenarios.MyScenario' could not be instantiated with class loader: [org.jbehave.scenario.ScenarioClassLoader urls=[/Users/binil/work/jbehave-bug-report/target/classes]]

Activity

Hide
Mauro Talevi added a comment -

Thanks Binil - I'll try to reproduce it.

Show
Mauro Talevi added a comment - Thanks Binil - I'll try to reproduce it.
Hide
Mauro Talevi added a comment -

Binil, confirmed and tracked down problem. Will release bugfix version 2.1.1 and merge changeset in trunk.

Show
Mauro Talevi added a comment - Binil, confirmed and tracked down problem. Will release bugfix version 2.1.1 and merge changeset in trunk.
Hide
Mauro Talevi added a comment -

Fixed in 2.1.1 and trunk.

Show
Mauro Talevi added a comment - Fixed in 2.1.1 and trunk.
Hide
Mauro Talevi added a comment -

Version 2.1.1 released.

Show
Mauro Talevi added a comment - Version 2.1.1 released.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: