# How to exclude a single test \*method\*

**URL:** https://discuss.gradle.org/t/how-to-exclude-a-single-test-method/20860
**Category:** Help/Discuss
**Created:** [December 16, 2016, 10:43pm UTC](https://discuss.gradle.org/t/how-to-exclude-a-single-test-method/20860 "2016-12-16T22:43:14Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![mark\_vieira](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/mark_vieira/32/5396_2.png) [@mark\_vieira](https://discuss.gradle.org/u/mark_vieira)
#### Post date: [December 17, 2016, 12:31am UTC](https://discuss.gradle.org/t/how-to-exclude-a-single-test-method/20860/2 "2016-12-17T00:31:53Z")

</div>

Unfortunately, no. The includes/excludes here work on file patters so you can only match against an entire class.

---

_[View the full topic](https://discuss.gradle.org/t/how-to-exclude-a-single-test-method/20860)._
