Files
oott/frontend/pubspec.yaml
T
rzuastiandClaude Opus 4.8 98b5fa267f Add automated test suite for the Flutter frontend
Introduce a headless `flutter test` suite (83 tests) covering models,
utilities, every API endpoint, and the five screens, with shared helpers
and fixtures so new tests stay terse.

API endpoint methods are statically-dispatched extensions on the
BackendAPI singleton, so they cannot be mocked via `implements`. Mock at
the Dio HTTP-adapter layer (http_mock_adapter) instead, enabled by two
small @visibleForTesting seams: BackendAPI.dioForTesting swaps the
singleton's Dio, and BackendReachability.forceOnlineForTesting() forces a
deterministic online state so polling widgets load.

Add frontend/run_tests.sh and document it in CLAUDE.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 19:41:52 -04:00

33 lines
616 B
YAML

name: frontend
description: "OOTT - Easy to setup and use network device discovery and alert system"
publish_to: "none"
version: 0.1.0
environment:
sdk: ^3.10.8
dependencies:
flutter:
sdk: flutter
go_router: ^17.1.0
intl: ^0.20.2
provider: ^6.1.5
dio: ^5.9.1
dio_smart_retry: ^7.0.1
connectivity_plus: ^7.0.0
encrypter: ^2.0.0
shared_preferences: ^2.5.4
fl_chart: ^1.2.0
google_fonts: ^6.2.1
url_launcher: ^6.3.0
package_info_plus: ^8.0.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^6.0.0
http_mock_adapter: ^0.6.1
flutter:
uses-material-design: true