Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Briar Desktop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
briar
Briar Desktop
Commits
a7cf2bca
Verified
Commit
a7cf2bca
authored
2 years ago
by
Sebastian
Browse files
Options
Downloads
Patches
Plain Diff
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
!256
Automated screenshots via testing API
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
HACKING.md
+9
-0
9 additions, 0 deletions
HACKING.md
briar-desktop/build.gradle.kts
+2
-0
2 additions, 0 deletions
briar-desktop/build.gradle.kts
with
11 additions
and
0 deletions
HACKING.md
+
9
−
0
View file @
a7cf2bca
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
briar-desktop/build.gradle.kts
+
2
−
0
View file @
a7cf2bca
...
@@ -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
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment