在maven-jasmine-plugin中提供html文件

时间:2013-10-15 13:24:11

标签: testing jasmine

我在茉莉花中有一个测试AngularJS指令的规范。该指令需要从服务器检索的html文件。因此,在代码中,我从路径XMLHttpRequest通过src/main/webapp/partial/components/user-form.html检索它。

当我运行mvn jasmine:bdd并转到localhost:8234时,它会起作用。然后从http://localhost:8234/src/main/webapp/partial/components/user-form.html检索user-form.html。

问题是当我尝试运行mvn jasmine:test时,它失败并显示错误消息:java.io.FileNotFoundException: /Users/amorfis/idea-workspace/mc5/mc5-web-ui/target/jasmine/src/main/webapp/partial/components/user-form.html

任何想法如何将其复制到target/jasmine/src..以便mvn jasmine:test可以访问?

0 个答案:

没有答案