我已经搜索了一段时间,试图在没有真正运气的情况下找出解决方案。在尝试运行JBEHAVE测试时,我会得到这个 -

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

我的文本场景,步骤类和方案类都在同一目录中($ path_to_jebehave_directory)。

这就是我在Maven Pom中使用的内容:

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

任何帮助将不胜感激!

有帮助吗?

解决方案

除非您告诉:

    <testResources>
        <testResource>
            <directory>src/test/java</directory>
            <includes>
                <include>**/*.story</include>
            </includes>
        </testResource>
    </testResources>
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top