单元测试框架有外观吗?

发布于 2024-10-04 01:23:12 字数 55 浏览 1 评论 0原文

你知道吗,就像 SLF4J 之于 log4j 一样,X 之于 TestNG 和 jUnit 吗?

You know, like SLF4J is to log4j, so X is to TestNG and jUnit?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沉溺在你眼里的海 2024-10-11 01:23:12

Spring TestContext 怎么样?根据文档,它可以提供您正在寻找的内容。
我还没有以这种方式使用它,所以我可能是错的。

Spring TestContext 框架(位于 org.springframework.test.context 包中)提供通用的、注释驱动的单元和集成测试支持,该支持与所使用的测试框架无关,无论是 JUnit 3.8.2、JUnit 4.5+ 、TestNG 5.10 等等。

What about Spring TestContext? According to documentation, it can provide what you are looking for.
I haven't used it in this way yet, so I may be wrong.

The Spring TestContext Framework (located in the org.springframework.test.context package) provides generic, annotation-driven unit and integration testing support that is agnostic of the testing framework in use, whether JUnit 3.8.2, JUnit 4.5+, TestNG 5.10, and so on.

http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/testing.html#unit-testing

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文