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
64149665
Commit
64149665
authored
3 years ago
by
Sebastian
Committed by
Mikolai Gütschow
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add unit test and style check instructions to hacking guide
parent
7e1f7a76
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!72
Add unit test and style check instructions to hacking guide
Pipeline
#8816
passed
3 years ago
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
HACKING.md
+24
-0
24 additions, 0 deletions
HACKING.md
with
24 additions
and
0 deletions
HACKING.md
+
24
−
0
View file @
64149665
# Hacking guide
# Hacking guide
## Running style checks and unit tests
When working on the code base, consider running the style checks and unit
tests locally, because the CI will complain anyway:
./gradlew :check
The above command does both. To run style checks only:
./gradlew ktlintCheck
If that fails, try formatting:
./gradlew ktlintFormat
Running unit tests only:
./gradlew :test --tests "*"
That will run tests from the desktop project only. On the other hand, this
will also run tests on briar core:
./gradlew test
## Testing different locales
## Testing different locales
To test the app with a different locale, add this e.g. in
`Main.kt`
:
To test the app with a different locale, add this e.g. in
`Main.kt`
:
...
...
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