JBehave
  1. JBehave
  2. JBEHAVE-155

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

        Mauro Talevi made changes -
        Field Original Value New Value
        Assignee Mauro Talevi [ maurotalevi ]
        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.
        Mauro Talevi made changes -
        Summary Mven plugin can't identify Scenario classes in src/test/java Maven plugin can't identify Scenario classes in src/test/java
        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.
        Mauro Talevi made changes -
        Fix Version/s 2.1.1 [ 14933 ]
        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.
        Mauro Talevi made changes -
        Fix Version/s 2.2 [ 14670 ]
        Hide
        Mauro Talevi added a comment -

        Version 2.1.1 released.

        Show
        Mauro Talevi added a comment - Version 2.1.1 released.
        Mauro Talevi made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]

          People

          • Assignee:
            Mauro Talevi
            Reporter:
            Binil Thomas
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: