-
Notifications
You must be signed in to change notification settings - Fork 39
Description
Hello,
Firstly want to say I love the project. Very helpful and understandable state management tool.
I am looking to run the business logic tests independently of flutter, which I cannot do for the state files due to the user-exception file importing dart:ui. which leads to errors as below:
00:11 +0 -1: loading test/...action_test.dart [E]
Failed to load "test/...action_test.dart":
Unable to spawn isolate: ../../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/async_redux-4.0.2/lib/src/user_exception.dart:1:8: Error: Not found: 'dart:ui'
import 'dart:ui';From the usage of all_imports pattern in your project I also cannot individually import what is needed to keep the package pure. This also prevents your suggestion in the readme with separating ui/business in separate packages, as in the end, even though business should not care about flutter, the tests for it can only be run with flutter test with help of flutter_test package instead of pure dart test package. Is there a way to truly separate business code from ui code and to be able to run them in pure dart vm ?
A way to run pub tests without dart:ui dependency would be greatly appreciated !