Skip to content

deepaksorthiya/spring-boot-3-testing-web-complete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Maven Build Test


** Spring Boot Web Mvc Testing - Integration and Unit Tests **


Getting Started

Requirements:

Git: 2.47.1
Spring Boot: 3.4.1
Maven: 3.9+
Java: 17

Clone Github Repository

git clone https://github.com/deepaksorthiya/spring-boot-3-testing-web-complete
cd spring-boot-3-testing-web-complete

Run Tests

Running only Unit Tests

./mvnw clean test

Running Unit Tests and Integration Tests:

./mvnw clean verify

Running Integration Tests but not Unit Test

./mvnw clean verify -DskipUnitTests=true

Running Unit Tests but not Integration Tests:

./mvnw clean verify -DskipITs=true

Other Ways

Running unit tests only (it uses maven surefire plugin)

./mvnw  compiler:testCompile resources:testResources  surefire:test

Running integration tests only (it uses maven-failsafe-plugin)

./mvnw  compiler:testCompile resources:testResources  failsafe:integration-test

Maven Plugins Docs

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely:

Releases

No releases published

Packages

No packages published