I'm trying to develop a Dart package for my Flutter project. It only consists of Dart (so no Flutter) code.
When trying to run my unit tests with Android Studio or IntelliJ I get the following error:
Test framework quit unexpectedly
In the output window I get the following messages:
Testing started at 21:38 ...
/Users/<user>/development/flutter/bin/cache/dart-sdk/bin/pub run test -r json /Users/<user>/Projects/personal/<project dir>/<project>
Observatory listening on http://127.0.0.1:57505/
Could not find a file named "pubspec.yaml" in "/Users/<user>/.pub-cache/hosted/pub.dartlang.org/test-1.5.3".
Process finished with exit code 66
The whole .pub-cache
directory doesn't even exists...
How do I get the testing to work?