在哪里可以找到 JSFUnit 现实生活中的示例?
我正在尝试使用 JSFUnit 框架,但无法理解如何分配项目/文件。我应该有多少个项目/子项目,以及是否可以只有一个项目,就像 JUnit 和类似框架通常发生的情况一样。很高兴看到一些例子。
我仍然不明白是否需要创建一个单独的 Maven 项目用于测试目的(如 此页面 说)或者我可以在我的主要项目中工作......
I'm trying to use JSFUnit framework, but can't understand how to allocate projects/files. How many projects/sub-projects should I have and whether it is possible to have just ONE project, as it normally happens with JUnit and similar frameworks. Would be nice to see some example.
I still can't understand whether I need to create a separate maven project for testing purposes (as this page says) or I can work in my main project...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
JSFUnit 项目本身有很多示例(正如我们在JBoss 存储库中看到的那样) ),我建议从 subversion 存储库 获取它们(查看整个
jboss-jsfunit-examples
)。JSFUnit 测试是容器内测试,需要打包和部署为一场战争。但你显然不希望它们最终出现在“生产”战争中,并将它们放入一个单独的项目中是分离事物的明显方法(然后它们将与正在测试的战争合并,使用覆盖)。所以,是的,创建一个单独的项目。
另请参阅
The JSFUnit project itself has many examples (as we can see in the JBoss repository) and I suggest to get them from the subversion repository (checkout the whole
jboss-jsfunit-examples
).JSFUnit tests are in-container tests and need to be packaged and deployed as a war. But you obviously don't want them to end up in the "production" WAR and putting them in a separate project is the obvious way to separate things (they will be then merged with the war under test using overlays). So, yes, create a separate project.
See also