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

Testes para o fluxo do quiz #174

Merged
merged 9 commits into from
Feb 26, 2024
Merged

Conversation

pedrox-hs
Copy link
Member

@pedrox-hs pedrox-hs commented Feb 21, 2024

O objetivo principal é garantir que as interações estejam testadas, com isso foram necessários alguns ajustes para melhorar a testabilidade buscando minimizar o impacto das alterações e também foi encontrados possíveis bugs.

PS.: dos arquivos "alterados" exatamente a metade (21) são de arquivos de imagens gerados pelos testes.

Copy link

codecov bot commented Feb 21, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (316c2bb) 50.26% compared to head (140533f) 52.41%.

Files Patch % Lines
...ages/tutorial/guardian/guardian_tutorial_page.dart 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #174      +/-   ##
==========================================
+ Coverage   50.26%   52.41%   +2.15%     
==========================================
  Files         487      487              
  Lines       14546    14556      +10     
==========================================
+ Hits         7312     7630     +318     
+ Misses       7234     6926     -308     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- fix GuardianTutorialPage pop result
- ensure pop result to be true in QuizShowStealthTutorialWidget and QuizShowHelpTutorialWidget
- Fix message feedback after reply when type is displayTextResponse

Signed-off-by: Pedro Silva <[email protected]>
@pedrox-hs pedrox-hs force-pushed the improvements/quiz/increase-tests branch from 3084d63 to c26be05 Compare February 22, 2024 04:54
@pedrox-hs pedrox-hs marked this pull request as ready for review February 22, 2024 05:04
@pedrox-hs pedrox-hs requested a review from a team as a code owner February 22, 2024 05:04
@pedrox-hs pedrox-hs requested a review from diraol February 22, 2024 05:04
- inject instance of AppNavigator
- define default values for QuizSessionEntity
- replace MediaQuery with LayoutBuilder in QuizButtonYesNoWidget
- Make QuizPageState public

Signed-off-by: Pedro Silva <[email protected]>
- Make screenshotTest's devices param not nullable
- Add ValueKey to GoldenTestWidgetApp
- Reset Modular route information between tests with buildTestableApp
- Add helper to interact with page's controller
- Improve tapAll to find exact element to avoid errors with const widgets

Signed-off-by: Pedro Silva <[email protected]>
Signed-off-by: Pedro Silva <[email protected]>
@pedrox-hs pedrox-hs force-pushed the improvements/quiz/increase-tests branch from c26be05 to 1197ad0 Compare February 22, 2024 05:25
@pedrox-hs pedrox-hs force-pushed the improvements/quiz/increase-tests branch from 1197ad0 to 140533f Compare February 22, 2024 05:35
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link

codeclimate bot commented Feb 22, 2024

Code Climate has analyzed commit 140533f and detected 6 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 6

View more on Code Climate.

@pedrox-hs pedrox-hs temporarily deployed to firebase-distribution February 23, 2024 15:01 — with GitHub Actions Inactive
@pedrox-hs pedrox-hs temporarily deployed to firebase-distribution February 23, 2024 15:01 — with GitHub Actions Inactive
@pedrox-hs pedrox-hs merged commit a5a601f into main Feb 26, 2024
11 checks passed
@pedrox-hs pedrox-hs deleted the improvements/quiz/increase-tests branch February 26, 2024 20:44
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.

2 participants