Closed orestesgaolin closed 2 years ago
After going through the steps, could not reproduce that error. Is the command activated from the source or a specific version?
Can't reproduce here either, will close it for now. If you have more information feel free to reopen so we can discuss it further.
Facing the same issue. Running very_good test
works fine on my machine but not working on GitLab CI. I made sure that it's being run in correct directory and even checked pubspec.yaml
content before running very_good test
on CI and everything looks good. Any idea what can be the problem?
Log:
Running "flutter test" in /builds/org/repo
✓ Optimizing tests (13.2s)
Error: cannot run without a dependency on either "package:flutter_test" or "package:test". Ensure the following lines are present in your pubspec.yaml:
dev_dependencies:
flutter_test:
sdk: flutter
pubspec.yaml
:
...
dev_dependencies:
flutter_test:
sdk: flutter
...
@Amir-P can you open a new issue with a step-by-step reproducible sample?
Description Getting following error when running tests in this repository:
Steps To Reproduce
cd very_good_cli
flutter pub get
very_good test --no-optimization
Expected Behavior
All the tests are run as the
test
package is present in the mainpubspec.yaml
: