AI assistent which may or may not work
This project uses Flutter tests with an emphasis on fast, deterministic unit tests.
- Model parsing and defaults:
test/models/smartschool_message_test.dart
- Command registry and command bus behavior:
test/commands/command_registry_test.darttest/commands/command_bus_test.dart
- Stateless and UI-state controllers:
test/controllers/basic_controllers_test.darttest/controllers/smartschool_inbox_controller_test.dart
- Smartschool auth and message service actions:
test/services/smartschool_auth_service_test.darttest/services/smartschool_messages_actions_test.dart
- Message cache and polling behavior:
test/services/smartschool_messages_polling_cache_test.dart
- Drift repository sync logic (in-memory database):
test/database/smartschool_sync_repository_test.dart
From do_thing/:
-
Run all tests:
flutter test -
Run with coverage:
flutter test --coverage -
Run a single file (example):
flutter test test/services/smartschool_messages_actions_test.dart
- Prefer provider overrides and fakes over live network/process dependencies.
- Use
NativeDatabase.memory()for Drift tests. - Keep tests deterministic (no real Smartschool login in CI).