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

fix: more read-only tests on PROD env #683

Merged
merged 2 commits into from
Jan 9, 2023

Conversation

monsieurtanuki
Copy link
Contributor

Impacted files:

  • api_get_robotoff_test.dart: switched to PROD env
  • api_matched_product_v1_test.dart: switched to PROD env
  • ordered_nutrient_test.dart: switched to PROD env

What

  • pub.dev says that our tests are failing.
  • More precisely, it's a read-only test on TEST env.
  • As TEST env is notoriously less stable than PROD, the goal of this PR is to switch to PROD env some read-only tests.

Screenshot

Capture d’écran 2023-01-09 à 12 13 05

Capture d’écran 2023-01-09 à 12 12 33

Impacted files:
* `api_get_robotoff_test.dart`: switched to PROD env
* `api_matched_product_v1_test.dart`: switched to PROD env
* `ordered_nutrient_test.dart`: switched to PROD env
Impacted file:
* `api_search_products_test.dart`: more resilient towards `null` result count
@codecov-commenter
Copy link

Codecov Report

Merging #683 (8f6f145) into master (793b164) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #683   +/-   ##
=======================================
  Coverage   76.38%   76.38%           
=======================================
  Files         195      195           
  Lines        7062     7064    +2     
=======================================
+ Hits         5394     5396    +2     
  Misses       1668     1668           
Impacted Files Coverage Δ
test/api_get_robotoff_test.dart 68.25% <ø> (ø)
test/api_matched_product_v1_test.dart 100.00% <ø> (ø)
test/ordered_nutrient_test.dart 100.00% <ø> (ø)
test/api_search_products_test.dart 98.38% <100.00%> (+<0.01%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@monsieurtanuki monsieurtanuki merged commit cd5cf06 into openfoodfacts:master Jan 9, 2023
@monsieurtanuki
Copy link
Contributor Author

Thank you @M123-dev for the review!

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