Skip to content
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

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

saksham-gt
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Jun 29, 2022

Codecov Report

Merging #255 (9f6cd6b) into development (1420b0f) will increase coverage by 0.49%.
The diff coverage is n/a.

@@              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     
Impacted Files Coverage Δ
lib/presentation/core/app_widget.dart 76.92% <0.00%> (+76.92%) ⬆️
lib/presentation/themes/themes.dart 100.00% <0.00%> (+100.00%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@saksham-gt saksham-gt requested a review from Xazin June 30, 2022 08:04
testWidgets('Testing MultiBloc Provider', (tester) async {
await tester.pumpWidget(initialWidget);
final multiBlocProvider = find.byType(MultiBlocProvider);
expect(multiBlocProvider, findsOneWidget);

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 {}

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

Copy link
Member

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.

@Xazin
Copy link
Member

Xazin commented Feb 8, 2023

@glitchpop-frenzy 👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants