# test4j **Repository Path**: tryternity/test4j ## Basic Information - **Project Name**: test4j - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 0 - **Created**: 2020-10-02 - **Last Updated**: 2022-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Test4J ------- test4j是一个单元测试和集成测试的框架,目前已经分拆成4个子项目 - [fluent-mock: mock框架](https://gitee.com/fluent-mybatis/fluent-mock.git) - [fluent-assert: 断言框架](https://gitee.com/fluent-mybatis/fluent-assert.git) - [fluent-dbtest: 数据库测试框架](https://gitee.com/fluent-mybatis/fluent-dbtest.git) - [fluent-story: BDD测试框架](https://gitee.com/fluent-mybatis/fluent-story.git) test4j项目作为一个总控集成框架继续存在, test4j提供了3个测试框架的总控集成 - test4j-junit4 使用junit4进行测试 - test4j-junit5 使用junit5进行测试 - test4j-testng 使用testng进行测试 ## 使用 - maven pom.xml ```xml 1.0.5 2.7.1 org.test4j test4j-junit4 ${test4j.version} test org.apache.maven.plugins maven-surefire-plugin 2.22.2 true true all -javaagent:"${settings.localRepository}/org/test4j/fluent-mock/${fluent-mock.version}/fluent-mock-${fluent-mock.version}.jar always 1 ``` - gradle ```groovy dependencies { testCompile('org.test4j:test4j-junit5:2.7.1') //annotationProcessor('org.test4j:fluent-mock:${fluent-mock.version}') testAnnotationProcessor('org.test4j:fluent-mock:1.0.5') test { jvmArgs "-javaagent:${classpath.find { it.name.contains("fluent-mock") }.absolutePath}" useJUnitPlatform() } } ```