我想安装一个ant生成脚本behat测试,所以我可以从詹金斯运行它们。当我用bin/behat或./bin/behat命令行运行behat时,输出按预期工作。但是,当我用下面的ant脚本蚂蚁生成脚本behat错误
<project name="behat" basedir=".">
<exec dir="bin" executable="./behat">
</exec>
</project>
我得到这个错误:
Buildfile: <mydir>/build.xml
[exec]
[exec]
[exec]
[exec] [RuntimeException]
[exec] Context class not found.
[exec] Maybe you have provided wrong or no `bootstrap` path in your behat.yml:
[exec] http://docs.behat.org/guides/7.config.html#paths
[exec]
[exec]
[exec]
[exec] behat [--init] [-f|--format="..."] [--out="..."] [--lang="..."] [--[no-]ansi] [--[no-]time] [--[no-]paths] [--[no-]snippets] [--[no-]snippets-paths] [--[no-]multiline] [--[no-]expand] [--story-syntax] [-d|--definitions="..."] [--name="..."] [--tags="..."] [--cache="..."] [--strict] [--dry-run] [--rerun="..."] [--append-snippets] [--append-to="..."] [features]
[exec]
[exec]
[exec] Result: 1
BUILD SUCCESSFUL
Total time: 0 seconds
工作。谢谢。 – steve76 2013-03-23 14:10:46