{"id":12829,"date":"2013-05-15T22:00:05","date_gmt":"2013-05-15T19:00:05","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/?p=12829"},"modified":"2014-03-25T15:08:12","modified_gmt":"2014-03-25T13:08:12","slug":"gradle-goodness-running-a-single-test","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2013\/05\/gradle-goodness-running-a-single-test.html","title":{"rendered":"Gradle Goodness: Running a Single Test"},"content":{"rendered":"<p>We can run test code with Gradle using the <code>test<\/code> task that is added by the Java plugin. By default all tests found in the project are executed. If we want to run a single test we can use the Java system property <code>test.single<\/code> with the name of the test. Actually the pattern for the system property is <code><em>taskName<\/em>.single<\/code>. The <code>taskName<\/code> is the name of the task of type <code>Test<\/code> in our project. We will see how we can use this in our builds.<\/p>\n<p>First we create a simple <code>build.gradle<\/code> file to run our tests:<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<\/p>\n<pre class=\"brush:java\">\/\/ File: build.gradle\r\napply plugin: 'java'\r\n \r\nrepositories {\r\n    mavenCentral()\r\n}\r\n \r\ndependencies {\r\n    testCompile 'junit:junit:[4,)'\r\n}\r\n \r\ntest {\r\n    testLogging {\r\n        \/\/ Show that tests are run in the command-line output\r\n        events 'started', 'passed'\r\n    }\r\n}<\/pre>\n<p>Next we create two test classes with each a single test method, just to demonstrate we can invoke them as single test later on.<\/p>\n<pre class=\"brush:java\">\/\/ File: src\/test\/java\/com\/mrhaki\/gradle\/SampleTest.java\r\npackage com.mrhaki.gradle;\r\n \r\nimport static org.junit.Assert.*;\r\nimport org.junit.*;\r\n \r\npublic class SampleTest {\r\n \r\n    @Test public void sample() {\r\n        assertEquals(\"Gradle is gr8\", \"Gradle is gr8\");\r\n    }\r\n    \r\n}<\/pre>\n<pre class=\"brush:java\">\/\/ File: src\/test\/java\/com\/mrhaki\/gradle\/AnotherSampleTest.java\r\npackage com.mrhaki.gradle;\r\n \r\nimport static org.junit.Assert.*;\r\nimport org.junit.*;\r\n \r\npublic class AnotherSampleTest {\r\n \r\n    @Test public void anotherSample() {\r\n        assertEquals(\"Gradle is great\", \"Gradle is great\");\r\n    }\r\n}<\/pre>\n<p>To only run the <code>SampleTest<\/code> we must invoke the <code>test<\/code> task from the command-line with the Java system property <code>-Dtest.single=Sample<\/code>:<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<pre class=\"brush:java\">$ gradle -Dtest.single=Sample test\r\n:compileJava UP-TO-DATE\r\n:processResources UP-TO-DATE\r\n:classes UP-TO-DATE\r\n:compileTestJava\r\n:processTestResources UP-TO-DATE\r\n:testClasses\r\n:test\r\n \r\ncom.mrhaki.gradle.SampleTest &gt; sample STARTED\r\n \r\ncom.mrhaki.gradle.SampleTest &gt; sample PASSED\r\n \r\nBUILD SUCCESSFUL\r\n \r\nTotal time: 11.404 secs<\/pre>\n<p>Notice only one test is execute now. Gradle will get the value <em>Sample<\/em> and uses it in the following pattern <em>**\/&lt;Java system property value=Sample&gt;*.class<\/em> to find the test class. So we don\u2019t have to type the full package and class name of our single test class. To only invoke the <code>AnotherSampleTest<\/code> test class we run the <code>test<\/code> task with a different value for the Java systme property:<\/p>\n<pre class=\"brush:java\">$ gradle -Dtest.single=AnotherSample test\r\n:compileJava UP-TO-DATE\r\n:processResources UP-TO-DATE\r\n:classes UP-TO-DATE\r\n:compileTestJava\r\n:processTestResources UP-TO-DATE\r\n:testClasses UP-TO-DATE\r\n:test\r\n \r\ncom.mrhaki.gradle.AnotherSampleTest &gt; anotherSample STARTED\r\n \r\ncom.mrhaki.gradle.AnotherSampleTest &gt; anotherSample PASSED\r\n \r\nBUILD SUCCESSFUL\r\n \r\nTotal time: 5.62 secs<\/pre>\n<p>We can also use a pattern for the Java system property to run multiple tests that apply to the pattern. For example we can use <em>*Sample<\/em> to run both <code>SampleTest<\/code> and <code>AnotherSampleTest<\/code>:<\/p>\n<pre class=\"brush:java\">$ gradle -Dtest.single=*Sample test\r\n:compileJava UP-TO-DATE\r\n:processResources UP-TO-DATE\r\n:classes UP-TO-DATE\r\n:compileTestJava\r\n:processTestResources UP-TO-DATE\r\n:testClasses UP-TO-DATE\r\n:test\r\n \r\ncom.mrhaki.gradle.AnotherSampleTest &gt; anotherSample STARTED\r\n \r\ncom.mrhaki.gradle.AnotherSampleTest &gt; anotherSample PASSED\r\n \r\ncom.mrhaki.gradle.SampleTest &gt; sample STARTED\r\n \r\ncom.mrhaki.gradle.SampleTest &gt; sample PASSED\r\n \r\nBUILD SUCCESSFUL\r\n \r\nTotal time: 5.605 secs<\/pre>\n<p>To show the Java system property also works for other tasks of type <code>Test<\/code> we add a new task to our <code>build.gradle<\/code> file. We name the task <code>sampleTest<\/code> and include our tests. We also apply the same <code>testLogging<\/code> now to all tasks with type <code>Test<\/code> so we can see the output.<\/p>\n<pre class=\"brush:java\">\/\/ File: build.gradle\r\napply plugin: 'java'\r\n \r\nrepositories {\r\n    mavenCentral()\r\n}\r\n \r\ndependencies {\r\n    testCompile 'junit:junit:[4,)'\r\n}\r\n \r\ntask sampleTest(type: Test, dependsOn: testClasses) {\r\n    include '**\/*Sample*'\r\n}\r\n \r\ntasks.withType(Test) {\r\n    testLogging {\r\n        events 'started', 'passed'\r\n    }\r\n}<\/pre>\n<p>Next we want to run only the <code>SampleTest<\/code> class, but now we use the Java system property <code>-DsampleTest.single=S*<\/code>:<\/p>\n<pre class=\"brush:java\">$ gradle -DsampleTest.single=S* sampleTest\r\n:compileJava UP-TO-DATE\r\n:processResources UP-TO-DATE\r\n:classes UP-TO-DATE\r\n:compileTestJava UP-TO-DATE\r\n:processTestResources UP-TO-DATE\r\n:testClasses UP-TO-DATE\r\n:sampleTest\r\n \r\ncom.mrhaki.gradle.SampleTest &gt; sample STARTED\r\n \r\ncom.mrhaki.gradle.SampleTest &gt; sample PASSED\r\n \r\nBUILD SUCCESSFUL\r\n \r\nTotal time: 10.677 secs<\/pre>\n<p>Code written with Gradle 1.6<br \/>\n&nbsp;<\/p>\n<div style=\"border: 1px solid #D8D8D8; background: #FAFAFA; width: 100%; padding-left: 5px;\"><b><i>Reference: <\/i><\/b><a href=\"http:\/\/blog.jdriven.com\/2013\/05\/gradle-goodness-running-a-single-test\/\">Gradle Goodness: Running a Single Test<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/jcg\">JCG partner<\/a> Hubert Ikkink at the <a href=\"http:\/\/blog.jdriven.com\/\">JDriven<\/a> blog.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>We can run test code with Gradle using the test task that is added by the Java plugin. By default all tests found in the project are executed. If we want to run a single test we can use the Java system property test.single with the name of the test. Actually the pattern for the &hellip;<\/p>\n","protected":false},"author":387,"featured_media":129,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[484],"class_list":["post-12829","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-gradle"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Gradle Goodness: Running a Single Test<\/title>\n<meta name=\"description\" content=\"We can run test code with Gradle using the test task that is added by the Java plugin. By default all tests found in the project are executed. If we want\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2013\/05\/gradle-goodness-running-a-single-test.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Gradle Goodness: Running a Single Test\" \/>\n<meta property=\"og:description\" content=\"We can run test code with Gradle using the test task that is added by the Java plugin. By default all tests found in the project are executed. If we want\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2013\/05\/gradle-goodness-running-a-single-test.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2013-05-15T19:00:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-03-25T13:08:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/gradle-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Hubert Ikkink\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hubert Ikkink\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/05\\\/gradle-goodness-running-a-single-test.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/05\\\/gradle-goodness-running-a-single-test.html\"},\"author\":{\"name\":\"Hubert Ikkink\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/d9dca6c0340c0c83d532597ecf9170c6\"},\"headline\":\"Gradle Goodness: Running a Single Test\",\"datePublished\":\"2013-05-15T19:00:05+00:00\",\"dateModified\":\"2014-03-25T13:08:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/05\\\/gradle-goodness-running-a-single-test.html\"},\"wordCount\":324,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/05\\\/gradle-goodness-running-a-single-test.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/gradle-logo.jpg\",\"keywords\":[\"Gradle\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/05\\\/gradle-goodness-running-a-single-test.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/05\\\/gradle-goodness-running-a-single-test.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/05\\\/gradle-goodness-running-a-single-test.html\",\"name\":\"Gradle Goodness: Running a Single Test\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/05\\\/gradle-goodness-running-a-single-test.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/05\\\/gradle-goodness-running-a-single-test.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/gradle-logo.jpg\",\"datePublished\":\"2013-05-15T19:00:05+00:00\",\"dateModified\":\"2014-03-25T13:08:12+00:00\",\"description\":\"We can run test code with Gradle using the test task that is added by the Java plugin. By default all tests found in the project are executed. If we want\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/05\\\/gradle-goodness-running-a-single-test.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/05\\\/gradle-goodness-running-a-single-test.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/05\\\/gradle-goodness-running-a-single-test.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/gradle-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/gradle-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/05\\\/gradle-goodness-running-a-single-test.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Gradle Goodness: Running a Single Test\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/d9dca6c0340c0c83d532597ecf9170c6\",\"name\":\"Hubert Ikkink\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d395989730ee0cec6b8d61836e11a699e19f99674c7e0b32bb5867b62779d39e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d395989730ee0cec6b8d61836e11a699e19f99674c7e0b32bb5867b62779d39e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d395989730ee0cec6b8d61836e11a699e19f99674c7e0b32bb5867b62779d39e?s=96&d=mm&r=g\",\"caption\":\"Hubert Ikkink\"},\"description\":\"My name is Hubert A. Klein Ikkink also known as mrhaki. I work at the great IT company JDriven. Here I work on projects with Groovy &amp; Grails, Gradle and Spring. At JDriven we focus on SpringSource technologies. All colleagues want to learn new technologies, support craftmanship and are very eager to learn. This is truly a great environment to work in.\",\"sameAs\":[\"http:\\\/\\\/blog.jdriven.com\\\/\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/hubert-ikkink\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Gradle Goodness: Running a Single Test","description":"We can run test code with Gradle using the test task that is added by the Java plugin. By default all tests found in the project are executed. If we want","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2013\/05\/gradle-goodness-running-a-single-test.html","og_locale":"en_US","og_type":"article","og_title":"Gradle Goodness: Running a Single Test","og_description":"We can run test code with Gradle using the test task that is added by the Java plugin. By default all tests found in the project are executed. If we want","og_url":"https:\/\/www.javacodegeeks.com\/2013\/05\/gradle-goodness-running-a-single-test.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2013-05-15T19:00:05+00:00","article_modified_time":"2014-03-25T13:08:12+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/gradle-logo.jpg","type":"image\/jpeg"}],"author":"Hubert Ikkink","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Hubert Ikkink","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2013\/05\/gradle-goodness-running-a-single-test.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/05\/gradle-goodness-running-a-single-test.html"},"author":{"name":"Hubert Ikkink","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/d9dca6c0340c0c83d532597ecf9170c6"},"headline":"Gradle Goodness: Running a Single Test","datePublished":"2013-05-15T19:00:05+00:00","dateModified":"2014-03-25T13:08:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/05\/gradle-goodness-running-a-single-test.html"},"wordCount":324,"commentCount":1,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/05\/gradle-goodness-running-a-single-test.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/gradle-logo.jpg","keywords":["Gradle"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2013\/05\/gradle-goodness-running-a-single-test.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2013\/05\/gradle-goodness-running-a-single-test.html","url":"https:\/\/www.javacodegeeks.com\/2013\/05\/gradle-goodness-running-a-single-test.html","name":"Gradle Goodness: Running a Single Test","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/05\/gradle-goodness-running-a-single-test.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/05\/gradle-goodness-running-a-single-test.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/gradle-logo.jpg","datePublished":"2013-05-15T19:00:05+00:00","dateModified":"2014-03-25T13:08:12+00:00","description":"We can run test code with Gradle using the test task that is added by the Java plugin. By default all tests found in the project are executed. If we want","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/05\/gradle-goodness-running-a-single-test.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2013\/05\/gradle-goodness-running-a-single-test.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2013\/05\/gradle-goodness-running-a-single-test.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/gradle-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/gradle-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2013\/05\/gradle-goodness-running-a-single-test.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"Gradle Goodness: Running a Single Test"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/d9dca6c0340c0c83d532597ecf9170c6","name":"Hubert Ikkink","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d395989730ee0cec6b8d61836e11a699e19f99674c7e0b32bb5867b62779d39e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d395989730ee0cec6b8d61836e11a699e19f99674c7e0b32bb5867b62779d39e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d395989730ee0cec6b8d61836e11a699e19f99674c7e0b32bb5867b62779d39e?s=96&d=mm&r=g","caption":"Hubert Ikkink"},"description":"My name is Hubert A. Klein Ikkink also known as mrhaki. I work at the great IT company JDriven. Here I work on projects with Groovy &amp; Grails, Gradle and Spring. At JDriven we focus on SpringSource technologies. All colleagues want to learn new technologies, support craftmanship and are very eager to learn. This is truly a great environment to work in.","sameAs":["http:\/\/blog.jdriven.com\/"],"url":"https:\/\/www.javacodegeeks.com\/author\/hubert-ikkink"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/12829","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/387"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=12829"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/12829\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/129"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=12829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=12829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=12829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}