Skip to content

Basic setup of a gradle project with unit- and integrationtests in different directories.

License

Notifications You must be signed in to change notification settings

luddwichr/gradle_setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What

This project demonstrates how to set up a gradle project with a dedicated source set for integration tests.

Why

https://softwareengineering.stackexchange.com/a/340375

How

https://docs.gradle.org/current/userguide/java_testing.html#sec:configuring_java_integration_tests ''

Alternative

The @Tag annotation supported by Junit 5 can be used instead. It allows for closer locality of unit and integration tests (i.e. in same directory). Also, this option is generally more flexible, if more than just the two categories unit test and integration test should be run separately (e.g. acceptance or performance tests). See https://mkyong.com/junit5/junit-5-tagging-and-filtering-tag-examples/ for how to set things with tags.

About

Basic setup of a gradle project with unit- and integrationtests in different directories.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages