-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Simplify language and use shorter phrases. - Merge android stuff into one page "Android development". - Update macOS/Linux instructions to be on par with Windows.
- Loading branch information
1 parent
f419f08
commit 37c11f6
Showing
8 changed files
with
97 additions
and
90 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
# Build project | ||
|
||
For instructions on setting up environment, see: | ||
First follow instructions to set up environment: | ||
|
||
* [Windows setup](./windows_setup.md) | ||
* [macOS and Linux setup](./macos_linux_setup.md) | ||
|
||
## Build for Android | ||
|
||
Open terminal in project root and run: | ||
Then open terminal in project root and run: | ||
|
||
flutter build apk --release | ||
|
||
After building, you can find APK here: | ||
|
||
dist/android/release/roc-droid-<version>.apk | ||
|
||
Upload APK file to device and tap on it to install. | ||
You can upload it to device and tap to install. |
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,19 @@ | ||
# Testing | ||
|
||
## General information about testing | ||
## Running tests | ||
|
||
* It is important to test the application on real devices, but for convenience, emulators are widely used for development and testing purposes. Here you can find documentation on how to set up such emulators: | ||
To run tests, see [Automation](./automation.md). | ||
|
||
* [Emulator Setup Documentation](./emulator.md) | ||
To setup Android emulator and capture its logs, see [Android development](./android_development.md). | ||
|
||
## UI tests | ||
## Widget tests | ||
|
||
* If possible, all classes of roc-droid `UI` should be tested | ||
* When possible, UI classes (`lib/src/ui`) should be tested using Flutter widget testing (`testWidgets()` function). | ||
|
||
* The type of testing used for the `UI` is defined by `Flutter` as widget testing. | ||
* Documentation: <https://docs.flutter.dev/cookbook/testing/widget/introduction> | ||
|
||
* The `UI` should be tested based on the `Flutter` `testWidgets()` functionality. | ||
## Unit tests | ||
|
||
* Widget testing is described in the `Flutter` documentation here: <https://docs.flutter.dev/cookbook/testing/widget/introduction> | ||
|
||
## Model tests | ||
|
||
* If possible, all classes of roc-droid `Model` should be tested | ||
|
||
* The type of testing used for the `Model` is defined by `Flutter` as unit testing. | ||
|
||
* The `Model` should be tested based on the `Dart` `test()` functionality. | ||
|
||
* Unit testing is described in the `Flutter` documentation here: <https://docs.flutter.dev/cookbook/testing/unit/introduction> | ||
|
||
## Agent tests | ||
|
||
* If possible, all classes of roc-droid `Agent` should be tested | ||
|
||
TODO - add Agent unit testing description | ||
* When possible, non-UI classes (`lib/src/model`, `lib/src/agent`) should be covered with unit tests (`test()` function) | ||
|
||
* Documentation: <https://docs.flutter.dev/cookbook/testing/unit/introduction> |
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