Skip to content
Mkyong.com
Mkyong.com
  • Development Service
  • Spring Boot
  • Java 8
  • Contact

test filtering

Gradle – How to exclude some tests

February 21, 2021February 7, 2016 by mkyong

There are two ways to exclude some unit tests in Gradle. Test filtering (preferred option) Include and exclude Topics. 1. Gradle Test filtering 1.1 Test classes 1.2 Exclude tests from a package 1.3 Exclude a single test using a class name 1.4 Exclude a single method of a test class 1.5 Exclude test methods contains …

Read more

Categories gradle Tags gradle, gradle test, test filtering, unit test 4 Comments

Mkyong.com has provided Java and Spring tutorials, guides, and code snippets since 2008. All published articles are simple, easy to understand, and well-tested in our development environment.

Mkyong.com licenses all source code on this website under the MIT License.

Tools
  • Spring Framework
  • Quarkus Framework
  • Micronaut Framework
  • Oracle Java JDK
  • Eclipse Temurin JDK
  • OpenJDK JDK
  • Hibernate ORM
  • Maven Build Tool
  • Gradle Build Tool
  • Tomcat Application Server
  • Docker
Links
  • Spring Guides
  • Docker Hub
  • Maven Central
  • Keep A Changlog
  • Semantic Versioning
  • Hugging Face - Qwen
  • Martin Fowler
About
  • About Us
  • Code License
  • Privacy Policy
  • Terms Of Use
  • Contact Us
© 2026 Mkyong.com - Build with Love.