开发者

ScenarioNotFoundException when trying to run jBehave scenario

I've been Google-ing around for a while trying to figure out a fix for this with no real luck. I'm get开发者_如何转开发ting this when trying to run a jBehave test -

org.jbehave.scenario.errors.ScenarioNotFoundException: Path '$Path_to_jBehave_Directory' 
could not be found by classloader sun.misc.Launcher$AppClassLoader@f4a24a ...

My textual scenario, Steps class, and scenario class are all in the same directory ($Path_to_jBehave_Directory).

This is what I'm using in my maven pom :

<dependency>
  <groupId>org.jbehave</groupId>
  <artifactId>jbehave-core</artifactId>
  <version>2.5</version>
</dependency>

Any help would be greatly Appreciated!


Maven does not automatically copy .story files to test classpath unless you tell it to:

    <testResources>
        <testResource>
            <directory>src/test/java</directory>
            <includes>
                <include>**/*.story</include>
            </includes>
        </testResource>
    </testResources>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜