This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.gradle.api.services.* | |
subprojects { | |
apply plugin: OneTestTaskOnly | |
} | |
class OneTestTaskOnly implements Plugin<Project> { | |
void apply(Project project) { | |
// Register a service to constrain parallelism of test tasks to 1 | |
Provider<SharedResource> testLimitingService = project.gradle.sharedServices.registerIfAbsent("testLimitingService", SharedResource) { spec -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<configuration> | |
<argLine>${surefire.jacoco.args}</argLine> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Here we iterate over the directories found in the root directory of the | |
* main project, and if the subdirectory contains a build.gradle file, it | |
* is added to the main project as a subproject. | |
*/ | |
Closure discoverSubprojects = { | |
def list = [] | |
rootDir.eachDir(){ dir -> | |
dir.eachFileMatch({it == 'build.gradle'}, { list += [dir.name] }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Could not find Firefox binary (os=linux). Make sure Firefox is installed or set the path manually with Selenium::WebDriver::Firefox::Binary.path= (Selenium::WebDriver::Error::WebDriverError) | |
require 'selenium-webdriver' | |
Selenium::WebDriver::Firefox::Binary.path='/usr/bin/firefox/firefox-bin' |