-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to run tests via pub run test #90
Comments
To be honest with you, I have little to none experience with "Dart only", and what it takes to make it happen. I am under the assumptions you just can't use In the docs, my suggestion that you separate your UI and business code doesn't mean that the business part mustn't include Flutter. Even if you can't achieve perfect separation, it is enough for a clean-code architecture that you don't use Widgets etc in the business code. Ideally yes, Flutter shouldn't be included, but if the above assumptions holds, it's very difficult to do that because Flutter actually contains some classes that you end up needing in the business code. For example, if you go to Or, as I said, maybe my assumptions are wrong, and you can help me with that? |
Hey,
Having a look through your code some other tidbits such as
In similar vein this superb project has glue code such as the Now splitting this into separate packages would be too much, but adding |
Just broke some business/ui classes into different files, imported meta ( Could you please have a look? async_redux:
git:
url: https://github.com/marcglasberg/async_redux
ref: ac8415a0c705b81f195a3d8180ae7faa9dff62aa I'd appreciate if now you could give me some more information/instructions about:
|
@marcglasberg I created a similar issue. It would be nice to fix this ASAP, so I could use this package for some applications / libraries in my work. If you need any help, I could create the pull-request for you or at least give you a small introduction via private chat etc. |
@stefanschaller Sure. You can find me in the "Flutter Community" Slack group. |
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 importingdart:ui
. which leads to errors as below: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 offlutter_test
package instead of pure darttest
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 !
The text was updated successfully, but these errors were encountered: