Gradle – How to Display Test Results in the Console in Real Time

Problem Statement: Most of the times we would like to see test results ( system.out/err, log messages from components being tested ) as they run in the same console I run: And not wait until tests are done to look at the test reports. Solution :  OR We can use Gradle Test Logger Plugin to … Continue reading Gradle – How to Display Test Results in the Console in Real Time

How to publish Codenarc report for Gradle project in Jenkins

If you are trying to generate Codenarc reports for Gradle Groovy project and publish them in Jenkins then you would require the following configuration: build.gradle apply plugin: 'codenarc' ... dependencies { codenarc 'org.codenarc:CodeNarc:0.21' ... } codenarc { configFile = file('config/codenarc/codenarc.groovy') // sourceSets = [project.sourceSets.main] // run codenarc on production sources only ignoreFailures = true // … Continue reading How to publish Codenarc report for Gradle project in Jenkins

Running Gradle script on Bamboo

I came across this issue while running Geb tests using Gradle build script on Bamboo CI. The firefox browser would fail with error: " org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: Error: cannot open display: 1.0 I followed a lot of forums and blog posts for … Continue reading Running Gradle script on Bamboo