Skip to content

UnitTestBot/UnitTestBot-Spring-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnitTestBot Spring: demo

This repository illustrates the UnitTestBot main features related to generating tests for Spring-based code.

Here you can find the source code examples with comments as well as the resulting UnitTestBot-generated tests.

For comparison, we also provide tests generated with Diffblue Cover, the UnitTestBot major competitor.

How UnitTestBot generates tests for non-Spring projects

Source Settings Tests
IntComparator.max Symbolic execution
Unit tests
IntComparatorTests
ArrayListVerifier.checkIfNotEmpty Symbolic execution
Unit tests
ArrayListVerifierTests
CustomByteReader.readBytes Symbolic execution
Unit tests
CustomByteReaderTests

How UnitTestBot generates Spring-specific tests

Source Settings Tests
OrderService.isMajorityExpensive Symbolic execution
Unit tests
OrderServiceUnitTests
OrderService.isNotEmpty Symbolic execution
Unit tests
OrderServiceUselessUnitTests
OrderService.isNotEmpty Fuzzing
Integration tests
Spring Boot autoconfiguration
OrderServiceIntegrationTests
CalculatorService.calcSquareSum Symbolic execution
Unit tests
CalculatorServiceNoConfigurationTests
CalculatorService.calcSquareSum Symbolic execution
Unit tests
Spring Boot autoconfiguration
CalculatorServiceWithConfigurationTests
OrderController.isMajorityExpensive Fuzzing
Integration tests
Spring Boot autoconfiguration
OrderControllerTests

How UnitTestBot resets a state between tests

Source Settings Tests
MutableService Symbolic execution
Unit tests
MutableServiceTests

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages