'Mockito flutter error: Cannot retrieve modification time
To prepare mockito Mocks for test, my use case:
import 'package:mockito/annotations.dart';
import 'package:.../repositories/random_activity_repository.dart';
@GenerateMocks([RandomActivityRepository])
void main() {}
When I build with: flutter packages pub run build_runner
Something goes wrong, and for every file I have, I get:
FileSystemException(path:...dart, message=Cannot retrieve modification time) [SEVERE]
I am tired of reading the docs (here: https://pub.dev/packages/mockito and here: https://github.com/mockito/mockito) but I cannot find this kind of error.
Can somebody help me UNDERSTAND what's going on?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
