Skip to content

deepaksorthiya/spring-boot-testing-web-complete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Maven Build Test


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


Getting Started

Requirements:

Git: 2.51+
Spring Boot: 4.0.1
Maven: 3.9+
Java: 25

Clone Github Repository

git clone https://github.com/deepaksorthiya/spring-boot-testing-web-complete
cd spring-boot-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

Skip Both Unit and Integration Test

./mvnw clean verify -DskipTests

OR

./mvnw clean verify -Dmaven.test.skip=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:

About

Spring Boot Web API unit and integration testing using junit mockito

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •