Commit 3c4a748

derdilla <82763757+NobodyForNothing@users.noreply.github.com>
2024-06-13 09:28:41
fix doc
Signed-off-by: derdilla <82763757+NobodyForNothing@users.noreply.github.com>
1 parent e387e3d
Changed files (3)
app
lib
screens
docs
app/lib/screens/subsettings/delete_data_screen.dart
@@ -6,8 +6,9 @@ import 'package:flutter_gen/gen_l10n/app_localizations.dart';
 import 'package:health_data_store/health_data_store.dart';
 import 'package:provider/provider.dart';
 
-/// Screen that allows
+/// Screen that allows mass deleting data entered in the app.
 class DeleteDataScreen extends StatefulWidget {
+  /// Create screen that allows mass data deletion.
   const DeleteDataScreen({super.key});
 
   @override
@@ -20,12 +21,10 @@ class _DeleteDataScreenState extends State<DeleteDataScreen> {
     final localizations = AppLocalizations.of(context)!;
     return Scaffold(
       appBar: AppBar(
-        title: const Text('Delete data'),
+        title: Text(localizations.delete),
         leading: IconButton(
           icon: const Icon(Icons.arrow_back),
-          onPressed: () {
-            Navigator.pop(context);
-          },
+          onPressed: () => Navigator.pop(context),
         ),
       ),
       body: ListView(
app/.gitignore
@@ -1,5 +1,4 @@
 # Miscellaneous
-*.mocks.dart
 *.class
 *.log
 *.pyc
docs/testing.md
@@ -4,8 +4,6 @@ Testing means catching bugs early and automated testing has already prevented
 multiple bugs from getting reintroduced. Therefor the goal is to have the 
 entire codebase covered by extensive tests.
 
-Integration
-
 ### Unit tests
 
 Unit tests are fast and can all be run during development. Some util functions 
@@ -27,9 +25,8 @@ of each other.
 tester.pumpWidget(App(forceClearAppDataOnLaunch: true,));
 ```
 
-To run integration tests an android emulator needs to be running.
+To run integration tests an android emulator needs to be running. During development running a single test file is sufficient and faster.
 
-Single test: 
 ```bash
 flutter drive \
   --driver=test_driver/integration_test.dart \
@@ -39,9 +36,8 @@ flutter drive \
 ```
 
 To ues the emulator `--browser-name android-chrome --android-emulator` is 
-required. `--flavor github` is needed for the driver to find the apk.
+required. `--flavor github` is needed for the driver to find the apk. All tests are run by the CI and can also be manually run before merge:
 
-All tests:
 ```bash
 flutter test integration_test --flavor github
 ```