🤗 ApiHug × {Postman|Swagger|Api...} = 快↑ 准√ 省↓
- GitHub - apihug/apihug.com: All abou the Apihug
- apihug.com: 有爱,有温度,有质量,有信任
- ApiHug - API design Copilot - IntelliJ IDEs Plugin | Marketplace
gradle depedencyopen in new window
dependencies {
api(project(":spring-boot-project:spring-boot-starters:spring-boot-starter"))
api(project(":spring-boot-project:spring-boot-test"))
api(project(":spring-boot-project:spring-boot-test-autoconfigure"))
api("com.jayway.jsonpath:json-path")
api("jakarta.xml.bind:jakarta.xml.bind-api")
api("org.assertj:assertj-core")
api("org.hamcrest:hamcrest")
api("org.junit.jupiter:junit-jupiter")
api("org.mockito:mockito-core")
api("org.mockito:mockito-junit-jupiter")
api("org.skyscreamer:jsonassert")
api("org.springframework:spring-core")
api("org.springframework:spring-test")
api("org.xmlunit:xmlunit-core") {
exclude group: "javax.xml.bind", module: "jaxb-api"
}
}
#Spring boot 测试项目结构
如果把整个 spring boot 测试相关的项目捋一下会有这么多:
- [4-spring-boot-test] && [5-spring-boot-test-autoconfigure]
- spring-boot-test 包含核心的测试扩展
- spring-boot-test-autoconfigure 测试里面支持 auto-configuration
- [9-10] spring 自己框架的冒烟测试
+---spring-boot-project
| +---spring-boot-parent
| +---spring-boot-starters
| | +---spring-boot-starter [1]
| | +---spring-boot-starter-parent [2]
| | +---spring-boot-starter-test [3]
| +---spring-boot-test [4]
| +---spring-boot-test-autoconfigure [5]
| +---spring-boot-tools [6]
| \---spring-boot-test-support [7]
+---spring-boot-system-tests [8]
| +---spring-boot-deployment-tests
| \---spring-boot-image-tests
+---spring-boot-tests [9]
| +---spring-boot-deployment-tests
| +---spring-boot-integration-tests
| | +---spring-boot-configuration-processor-tests
| | +---spring-boot-launch-script-tests
| | +---spring-boot-loader-tests
| | \---spring-boot-server-tests
| \---spring-boot-smoke-tests [10]
| +---spring-boot-smoke-test-actuator
| +---spring-boot-smoke-test-actuator-custom-security
| +---spring-boot-smoke-test-actuator-log4j2
| +---spring-boot-smoke-test-actuator-noweb
| +---spring-boot-smoke-test-actuator-ui
| +---spring-boot-smoke-test-amqp
| +---spring-boot-smoke-test-animated-banner
| +---spring-boot-smoke-test-ant
| +---spring-boot-smoke-test-aop
| +---spring-boot-smoke-test-batch
| +---spring-boot-smoke-test-bootstrap-registry
| +---spring-boot-smoke-test-cache
| +---spring-boot-smoke-test-data-jdbc
| +---spring-boot-smoke-test-data-jpa
| +---spring-boot-smoke-test-data-ldap
| +---spring-boot-smoke-test-data-r2dbc
| +---spring-boot-smoke-test-data-r2dbc-flyway
| +---spring-boot-smoke-test-data-r2dbc-liquibase
| +---spring-boot-smoke-test-data-rest
| +---spring-boot-smoke-test-devtools
| +---spring-boot-smoke-test-flyway
| +---spring-boot-smoke-test-hateoas
| +---spring-boot-smoke-test-integration
| +---spring-boot-smoke-test-jetty
| +---spring-boot-smoke-test-jetty-jsp
| +---spring-boot-smoke-test-jetty-ssl
| +---spring-boot-smoke-test-jpa
| +---spring-boot-smoke-test-junit-vintage
| +---spring-boot-smoke-test-kafka
| +---spring-boot-smoke-test-liquibase
| +---spring-boot-smoke-test-logback
| +---spring-boot-smoke-test-oauth2-client
| +---spring-boot-smoke-test-oauth2-resource-server
| +---spring-boot-smoke-test-parent-context
| +---spring-boot-smoke-test-profile
| +---spring-boot-smoke-test-property-validation
| +---spring-boot-smoke-test-quartz
| +---spring-boot-smoke-test-reactive-oauth2-client
| +---spring-boot-smoke-test-reactive-oauth2-resource-server
| +---spring-boot-smoke-test-rsocket
| +---spring-boot-smoke-test-saml2-service-provider
| +---spring-boot-smoke-test-secure
| +---spring-boot-smoke-test-secure-webflux
| +---spring-boot-smoke-test-servlet
| +---spring-boot-smoke-test-session-hazelcast
| +---spring-boot-smoke-test-session-jdbc
| +---spring-boot-smoke-test-session-mongo
| +---spring-boot-smoke-test-session-redis
| +---spring-boot-smoke-test-session-webflux-mongo
| +---spring-boot-smoke-test-session-webflux-redis
| +---spring-boot-smoke-test-test-nomockito
| +---spring-boot-smoke-test-testng
| +---spring-boot-smoke-test-tomcat
| +---spring-boot-smoke-test-tomcat-jsp
| +---spring-boot-smoke-test-tomcat-multi-connectors
| +---spring-boot-smoke-test-tomcat-ssl
| +---spring-boot-smoke-test-traditional
| +---spring-boot-smoke-test-undertow
| +---spring-boot-smoke-test-undertow-ssl
| +---spring-boot-smoke-test-war
| +---spring-boot-smoke-test-web-application-type
| +---spring-boot-smoke-test-web-freemarker
| +---spring-boot-smoke-test-web-groovy-templates
| +---spring-boot-smoke-test-web-jsp
| +---spring-boot-smoke-test-web-method-security
| +---spring-boot-smoke-test-web-mustache
| +---spring-boot-smoke-test-web-secure
| +---spring-boot-smoke-test-web-secure-custom
| +---spring-boot-smoke-test-web-secure-jdbc
| +---spring-boot-smoke-test-web-static
| +---spring-boot-smoke-test-web-thymeleaf
| +---spring-boot-smoke-test-webflux
| +---spring-boot-smoke-test-webflux-coroutines
| +---spring-boot-smoke-test-webservices
| +---spring-boot-smoke-test-websocket-jetty
| +---spring-boot-smoke-test-websocket-tomcat
| +---spring-boot-smoke-test-websocket-undertow
| \---spring-boot-smoke-test-xml
#参考资料
- Spring Boot 版本open in new window
- Spring Boot Testingopen in new window
- Spring Testingopen in new window
- Spring 源码open in new window
- Spring Boot 源码