So now my build gradle looks like this:
apply plugin: "geb-browserstack"
browserStack {
application "http://google.com"
task {
testClassesDirs = rootProject.test.getTestClassesDirs()
classpath = rootProject.test.classpath
systemProperty "geb.build.reportsDir",
reporting.file("$project.buildDir/test-results/$name/geb")
}
browsers {
firefox_windows
}
browsers {
chrome_mac
}
account {
username = "login"//System.getenv("GEB_BROWSERSTACK_USERNAME")
accessKey = "pass"// System.getenv("GEB_BROWSERSTACK_AUTHKEY")
}
}
and output from CLI:
./gradlew -i clean chromeMacTest
15:24:17 1 ↵
Initialized native services in: /Users/mateuszpluta/.gradle/native
The client will now receive all logging from the daemon (pid: 97670). The
daemon log file: /Users/mateuszpluta/.gradle/daemon/4.4/daemon-97670.out.log
Starting 5th build in daemon [uptime: 9 mins 49.475 secs, performance: 99%,
no major garbage collections]
Using 4 worker leases.
Creating new cache for fileHashes, path
/Users/mateuszpluta/Projects/ah-ui-integration/.gradle/4.4/fileHashes/fileHashes.bin,
access org.gradle.cache.internal.DefaultCacheAccess@4201f7d
Invalidating in-memory cache of
/Users/mateuszpluta/Projects/ah-ui-integration/.gradle/4.4/fileHashes/fileHashes.bin
Starting Build
Invalidating in-memory cache of
/Users/mateuszpluta/.gradle/caches/4.4/fileHashes/fileHashes.bin
Invalidating in-memory cache of
/Users/mateuszpluta/.gradle/caches/4.4/fileHashes/resourceHashesCache.bin
Settings evaluated using settings file
'/Users/mateuszpluta/Projects/ah-ui-integration/settings.gradle'.
Projects loaded. Root project using build file
'/Users/mateuszpluta/Projects/ah-ui-integration/build.gradle'.
Included projects: [root project 'ah-ui-integration']
> Configure project :
Evaluating root project 'ah-ui-integration' using build file
'/Users/mateuszpluta/Projects/ah-ui-integration/build.gradle'.
Creating new cache for metadata-1.1/results, path
/Users/mateuszpluta/.gradle/caches/transforms-1/metadata-1.1/results.bin,
access org.gradle.cache.internal.DefaultCacheAccess@26e9cac1
Creating new cache for metadata-2.36/module-metadata, path
/Users/mateuszpluta/.gradle/caches/modules-2/metadata-2.36/module-metadata.bin,
access org.gradle.cache.internal.DefaultCacheAccess@16cb37d1
Creating new cache for metadata-2.36/module-artifacts, path
/Users/mateuszpluta/.gradle/caches/modules-2/metadata-2.36/module-artifacts.bin,
access org.gradle.cache.internal.DefaultCacheAccess@16cb37d1
Creating new cache for metadata-2.36/module-artifact, path
/Users/mateuszpluta/.gradle/caches/modules-2/metadata-2.36/module-artifact.bin,
access org.gradle.cache.internal.DefaultCacheAccess@16cb37d1
All projects evaluated.
Selected primary task 'clean' from project :
Selected primary task 'chromeMacTest' from project :
Creating new cache for annotation-processors, path
/Users/mateuszpluta/Projects/ah-ui-integration/.gradle/4.4/fileContent/annotation-processors.bin,
access org.gradle.cache.internal.DefaultCacheAccess@2c37b51c
Tasks to be executed: [task ':clean', task ':compileJava', task
':compileGroovy', task ':processResources', task ':classes', task
':downloadBrowserStackTunnel', task ':unzipBrowserStackTunnel', task
':openBrowserStackTunnelInBackground', task ':compileTestJava', task
':compileTestGroovy', task ':processTestResources', task ':testClasses',
task ':chromeMacTest', task ':chromeMacDecorateReports', task
':closeBrowserStackTunnel']
Creating new cache for resourceHashesCache, path
/Users/mateuszpluta/Projects/ah-ui-integration/.gradle/4.4/fileHashes/resourceHashesCache.bin,
access org.gradle.cache.internal.DefaultCacheAccess@4201f7d
Creating new cache for taskHistory, path
/Users/mateuszpluta/Projects/ah-ui-integration/.gradle/4.4/taskHistory/taskHistory.bin,
access org.gradle.cache.internal.DefaultCacheAccess@40ce1657
Creating new cache for outputFiles, path
/Users/mateuszpluta/Projects/ah-ui-integration/.gradle/buildOutputCleanup/outputFiles.bin,
access org.gradle.cache.internal.DefaultCacheAccess@62cd8fcc
:clean (Thread[Task worker for ':',5,main]) started.
> Task :clean
Putting task artifact state for task ':clean' into context took 0.003 secs.
Up-to-date check for task ':clean' took 0.0 secs. It is not up-to-date
because:
Task has not declared any outputs.
:clean (Thread[Task worker for ':',5,main]) completed. Took 2.408 secs.
:compileJava (Thread[Task worker for ':',5,main]) started.
> Task :compileJava NO-SOURCE
Putting task artifact state for task ':compileJava' into context took 0.015
secs.
file or directory
'/Users/mateuszpluta/Projects/ah-ui-integration/src/main/java', not found
Skipping task ':compileJava' as it has no source files and no previous
output files.
:compileJava (Thread[Task worker for ':',5,main]) completed. Took 0.163
secs.
:compileGroovy (Thread[Task worker for ':' Thread 2,5,main]) started.
> Task :compileGroovy NO-SOURCE
Putting task artifact state for task ':compileGroovy' into context took 0.0
secs.
file or directory
'/Users/mateuszpluta/Projects/ah-ui-integration/src/main/groovy', not found
Skipping task ':compileGroovy' as it has no source files and no previous
output files.
:compileGroovy (Thread[Task worker for ':' Thread 2,5,main]) completed.
Took 0.003 secs.
:processResources (Thread[Task worker for ':' Thread 2,5,main]) started.
> Task :processResources NO-SOURCE
Putting task artifact state for task ':processResources' into context took
0.0 secs.
file or directory
'/Users/mateuszpluta/Projects/ah-ui-integration/src/main/resources', not
found
Skipping task ':processResources' as it has no source files and no previous
output files.
:processResources (Thread[Task worker for ':' Thread 2,5,main]) completed.
Took 0.003 secs.
:classes (Thread[Task worker for ':' Thread 2,5,main]) started.
> Task :classes UP-TO-DATE
Skipping task ':classes' as it has no actions.
:classes (Thread[Task worker for ':' Thread 2,5,main]) completed. Took
0.001 secs.
:downloadBrowserStackTunnel (Thread[Task worker for ':' Thread 2,5,main])
started.
> Task :downloadBrowserStackTunnel
Putting task artifact state for task ':downloadBrowserStackTunnel' into
context took 0.0 secs.
Up-to-date check for task ':downloadBrowserStackTunnel' took 0.016 secs. It
is not up-to-date because:
No history is available.
Downloading
https://www.browserstack.com/browserstack-local/BrowserStackLocal-darwin-x64.zip
to
/Users/mateuszpluta/Projects/ah-ui-integration/build/browserstack/BrowserStackTunnel.zip
:downloadBrowserStackTunnel (Thread[Task worker for ':' Thread 2,5,main])
completed. Took 3.735 secs.
:unzipBrowserStackTunnel (Thread[Task worker for ':' Thread 2,5,main])
started.
> Task :unzipBrowserStackTunnel
Putting task artifact state for task ':unzipBrowserStackTunnel' into
context took 0.0 secs.
Up-to-date check for task ':unzipBrowserStackTunnel' took 0.027 secs. It is
not up-to-date because:
No history is available.
:unzipBrowserStackTunnel (Thread[Task worker for ':' Thread 2,5,main])
completed. Took 0.626 secs.
:openBrowserStackTunnelInBackground (Thread[Task worker for ':' Thread
2,5,main]) started.
browserstack-tunnel: BrowserStackLocal v7.0
browserstack-tunnel:
> Task :openBrowserStackTunnelInBackground
Putting task artifact state for task ':openBrowserStackTunnelInBackground'
into context took 0.0 secs.
Up-to-date check for task ':openBrowserStackTunnelInBackground' took 0.0
secs. It is not up-to-date because:
Task has not declared any outputs.
browserstack-tunnel: You can now access your local server(s) in our remote
browser.
:openBrowserStackTunnelInBackground (Thread[Task worker for ':' Thread
2,5,main]) completed. Took 3.283 secs.
:compileTestJava (Thread[Task worker for ':' Thread 2,5,main]) started.
> Task :compileTestJava NO-SOURCE
Putting task artifact state for task ':compileTestJava' into context took
0.0 secs.
file or directory
'/Users/mateuszpluta/Projects/ah-ui-integration/src/test/java', not found
Skipping task ':compileTestJava' as it has no source files and no previous
output files.
:compileTestJava (Thread[Task worker for ':' Thread 2,5,main]) completed.
Took 0.001 secs.
:compileTestGroovy (Thread[Task worker for ':' Thread 2,5,main]) started.
> Task :compileTestGroovy
Putting task artifact state for task ':compileTestGroovy' into context took
0.0 secs.
Up-to-date check for task ':compileTestGroovy' took 2.55 secs. It is not
up-to-date because:
No history is available.
Starting process 'Gradle Worker Daemon 1'. Working directory:
/Users/mateuszpluta/.gradle/workers Command:
/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/bin/java
-Djava.security.manager=worker.org.gradle.process.internal.worker.child.BootstrapSecurityManager
-Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant
-cp /Users/mateuszpluta/.gradle/caches/4.4/workerMain/gradle-worker.jar
worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Worker
Daemon 1'
Successfully started process 'Gradle Worker Daemon 1'
Started Gradle worker daemon (0.889 secs) with fork options
DaemonForkOptions{executable=/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/bin/java,
minHeapSize=null, maxHeapSize=null, jvmArgs=[],
classpath=[/Users/mateuszpluta/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy-all/2.4.13/7e410735a50e495323dd4855ddd13ea7dad23ac1/groovy-all-2.4.13.jar,
/Users/mateuszpluta/.gradle/wrapper/dists/gradle-4.4-all/7c3ipsvdlel74ds9f4drekun90/gradle-4.4/lib/ant-1.9.9.jar,
/Users/mateuszpluta/.gradle/wrapper/dists/gradle-4.4-all/7c3ipsvdlel74ds9f4drekun90/gradle-4.4/lib/ant-launcher-1.9.9.jar],
keepAliveMode=SESSION}.
This JVM does not support getting OS memory, so no OS memory status updates
will be broadcast
Initialized native services in: /Users/mateuszpluta/.gradle/native
:compileTestGroovy (Thread[Task worker for ':' Thread 2,5,main]) completed.
Took 18.378 secs.
:processTestResources (Thread[Daemon worker Thread 2,5,main]) started.
> Task :processTestResources
Putting task artifact state for task ':processTestResources' into context
took 0.0 secs.
Up-to-date check for task ':processTestResources' took 0.042 secs. It is
not up-to-date because:
No history is available.
:processTestResources (Thread[Daemon worker Thread 2,5,main]) completed.
Took 0.092 secs.
:testClasses (Thread[Daemon worker Thread 2,5,main]) started.
> Task :testClasses
Skipping task ':testClasses' as it has no actions.
:testClasses (Thread[Daemon worker Thread 2,5,main]) completed. Took 0.0
secs.
:chromeMacTest (Thread[Daemon worker Thread 2,5,main]) started.
> Task :chromeMacTest
Putting task artifact state for task ':chromeMacTest' into context took 0.0
secs.
Up-to-date check for task ':chromeMacTest' took 0.139 secs. It is not
up-to-date because:
No history is available.
Finished generating test XML results (0.003 secs) into:
/Users/mateuszpluta/Projects/ah-ui-integration/build/test-results/chromeMacTest
Generating HTML test report...
Finished generating test html results (0.031 secs) into:
/Users/mateuszpluta/Projects/ah-ui-integration/build/reports/tests/chromeMacTest
:chromeMacTest (Thread[Daemon worker Thread 2,5,main]) completed. Took
1.143 secs.
:chromeMacDecorateReports (Thread[Task worker for ':' Thread 2,5,main])
started.
> Task :chromeMacDecorateReports
Putting task artifact state for task ':chromeMacDecorateReports' into
context took 0.0 secs.
Up-to-date check for task ':chromeMacDecorateReports' took 0.009 secs. It
is not up-to-date because:
No history is available.
:chromeMacDecorateReports (Thread[Task worker for ':' Thread 2,5,main])
completed. Took 0.022 secs.
:closeBrowserStackTunnel (Thread[Task worker for ':' Thread 2,5,main])
started.
> Task :closeBrowserStackTunnel
Putting task artifact state for task ':closeBrowserStackTunnel' into
context took 0.0 secs.
Up-to-date check for task ':closeBrowserStackTunnel' took 0.0 secs. It is
not up-to-date because:
Task has not declared any outputs.
disconnecting tunnel
:closeBrowserStackTunnel (Thread[Task worker for ':' Thread 2,5,main])
completed. Took 0.003 secs.
BUILD SUCCESSFUL in 38s
9 actionable tasks: 9 executed
Stopped 1 worker daemon(s).
--
You received this message because you are subscribed to the Google Groups "Geb
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/geb-user/3d229fa3-9f61-445b-bb27-dd2159832d44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.