An app to manage your desk, and your work. The project is related to a desk project of mine and is getting developed in the module "mobile development" (4th
semester) during my studies at the DHGE.
!!! THIS IS THE LOOK OF THE APP BEFORE I REWORKED IT. WILL BE UPDATED SOON (hopefully) !!!
- Clone the repository
git clone https://github.com/MhouneyLH/deskify.git
- Install the dependencies
flutter pub get
I use Mocktail in combination with FlutterTest for testing.
How to add and run new tests?
-
Create a new file in the
test
folder. The name of the file should bename_of_the_file_test.dart
. The structure of the test directory should be mirrored to thelib
directory to keep the structure clean and understandable. -
Import the needed libraries. (The automatic import does not work all the time sadly)
import 'package:flutter_test/flutter_test.dart'; import 'package:mocktail/mocktail.dart'; // ...
-
Define your Mock-Classes. (If you need some)
class MockMyClass extends Mock implements MyClass {} // ...
-
Write your tests. Orientate yourself on existing classes. (Consider when writing tests for multiple methods of a class to use a group for the tests of each method.)
-
Run the tests with the following command:
flutter test
Contributions are always welcome! Please look at following commit-conventions, while contributing: https://www.conventionalcommits.org/en/v1.0.0/#summary 😃
- Fork the project.
- Pick or create an issue you want to work on.
- Create your Feature-Branch. (
git checkout -b feat/best_feature
) - Commit your changes. (
git commit -m 'feat: add some cool feature'
) - Push to the branch. (
git push origin feat/best_feature
) - Open a Pull-Request into the Develop-Branch.