-
Notifications
You must be signed in to change notification settings - Fork 12
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
76% coverage for presentation/core/app_widgets.dart #255
base: development
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## development #255 +/- ##
==============================================
+ Coverage 9.22% 9.72% +0.49%
==============================================
Files 122 122
Lines 3404 3404
==============================================
+ Hits 314 331 +17
+ Misses 3090 3073 -17
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
testWidgets('Testing MultiBloc Provider', (tester) async { | ||
await tester.pumpWidget(initialWidget); | ||
final multiBlocProvider = find.byType(MultiBlocProvider); | ||
expect(multiBlocProvider, findsOneWidget); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to check the providers
values instance and validate that all the required blocs are provided
import 'package:collaction_app/application/crowdaction/subscription/subscription_bloc.dart'; | ||
import 'package:collaction_app/application/crowdaction/subscription_status/subscription_status_bloc.dart'; | ||
|
||
class MockAuthBloc extends MockBloc<AuthEvent, AuthState> implements AuthBloc {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could call this file mocks.dart
since it just contains mocks not fixtures
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed.
I saw some mocks in the test utilities file, they don't belong there.
5be7e86
to
77ff369
Compare
05db9fc
to
1ac5990
Compare
@glitchpop-frenzy 👀 |
8906c8d
to
649893f
Compare
No description provided.