Skip to content
Snippets Groups Projects
Verified Commit a7cf2bca authored by Sebastian's avatar Sebastian
Browse files

Make screenshot task visible in Gradle task list and add to HACKING guide

parent ebdbfca3
No related branches found
No related tags found
1 merge request!256Automated screenshots via testing API
...@@ -61,6 +61,15 @@ quicker. In `RendezvousConstants`, change ...@@ -61,6 +61,15 @@ quicker. In `RendezvousConstants`, change
to something lower such as to something lower such as
`long POLLING_INTERVAL_MS = SECONDS.toMillis(10);`. `long POLLING_INTERVAL_MS = SECONDS.toMillis(10);`.
## Creating screenshots automatically
You can create screenshots automatically from the command line by calling this:
./gradlew cleanAutomatedScreenshots automatedScreenshots
It's also possible to run that from the IDE. Navigate to the `ScreenshotTest`
file and run any test from there.
## Updating Copyright headers ## Updating Copyright headers
In IntelliJ, right click the root of the project tree and select In IntelliJ, right click the root of the project tree and select
......
...@@ -153,6 +153,8 @@ configurations["automatedScreenshotsImplementation"].extendsFrom(configurations. ...@@ -153,6 +153,8 @@ configurations["automatedScreenshotsImplementation"].extendsFrom(configurations.
configurations["automatedScreenshotsRuntimeOnly"].extendsFrom(configurations.testRuntimeOnly.get()) configurations["automatedScreenshotsRuntimeOnly"].extendsFrom(configurations.testRuntimeOnly.get())
task<Test>("automatedScreenshots") { task<Test>("automatedScreenshots") {
group = "documentation"
description = "Creates screenshots of the app automatically."
testClassesDirs = sourceSets["automatedScreenshots"].output.classesDirs testClassesDirs = sourceSets["automatedScreenshots"].output.classesDirs
classpath = sourceSets["automatedScreenshots"].runtimeClasspath classpath = sourceSets["automatedScreenshots"].runtimeClasspath
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment