-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dPWA Testing] Adding parameter wildcards to test generation framework
This change allows critical user journey to specify a wildcard like "EnumType::All", which will cause the script to expand that single test into multiple tests for every combination of argument expansion. This allows us to continue to simplify our test list and implementation. Bug: b/240571429 Change-Id: I4c45cea08048ab817d246c4208ac428c797e8ff6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3827079 Commit-Queue: Dibyajyoti Pal <dibyapal@chromium.org> Reviewed-by: Dibyajyoti Pal <dibyapal@chromium.org> Auto-Submit: Daniel Murphy <dmurph@chromium.org> Cr-Commit-Position: refs/heads/main@{#1035189}
- Loading branch information
Showing
17 changed files
with
162 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
# This is a generated file. | ||
# Full coverage: 31%, with partial coverage: 31% | ||
# Full coverage: 70%, with partial coverage: 70% | ||
state_change_a_Chicken🌕 check_a_Chicken🌕 | ||
state_change_a_Chicken🌕 check_b_Chicken_Green🌕 | ||
state_change_b_Chicken_Green🌑 check_a_Chicken🌑 | ||
state_change_b_Chicken_Green🌑 check_b_Chicken_Green🌑 | ||
state_change_a_Dog🌑 check_b_Dog_Red🌑 | ||
state_change_a_Dog🌕 check_b_Dog_Red🌕 | ||
state_change_a_Chicken🌕 state_change_b_Chicken_Red🌑 check_a_Chicken🌑 | ||
state_change_a_Dog🌑 state_change_a_Chicken🌑 check_b_Chicken_Green🌑 | ||
state_change_a_Dog🌕 state_change_a_Chicken🌕 check_b_Chicken_Green🌕 | ||
state_change_a_Dog🌕 check_a_Chicken🌕 | ||
state_change_a_Dog🌕 check_a_Dog🌕 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
# This is a generated file. | ||
# Full coverage: 60%, with partial coverage: 60% | ||
# Full coverage: 71%, with partial coverage: 71% | ||
state_change_a_Chicken🌑 check_a_Chicken🌑 | ||
state_change_a_Chicken🌑 check_b_Chicken_Green🌑 | ||
state_change_b_Chicken_Green🌕 check_a_Chicken🌕 | ||
state_change_b_Chicken_Green🌕 check_b_Chicken_Green🌕 | ||
state_change_a_Dog🌕 check_b_Dog_Red🌕 | ||
state_change_a_Dog🌕 check_a_Chicken🌕 | ||
state_change_a_Dog🌕 check_a_Dog🌕 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
chrome/test/webapps/test_data/expected_test_txt/tests_default_cros.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
IN_PROC_BROWSER_TEST_F(TestNameCros, WebAppIntegration_3Dog_2DogRed_3Chicken_2ChickenGreen) { | ||
IN_PROC_BROWSER_TEST_F(TestNameCros, WebAppIntegration_3Dog_2DogRed_1Chicken_1Dog_3Chicken_2ChickenGreen) { | ||
// Test contents are generated by script. Please do not modify! | ||
// See `docs/webapps/why-is-this-test-failing.md` or | ||
// `docs/webaps/integration-testing-framework` for more info. | ||
// Sheriffs: Disabling this test is supported. | ||
helper_.StateChangeA(Animal::kDog); | ||
helper_.CheckB(Animal::kDog, Color::kRed); | ||
helper_.CheckA(Animal::kChicken); | ||
helper_.CheckA(Animal::kDog); | ||
helper_.StateChangeA(Animal::kChicken); | ||
helper_.CheckB(Animal::kChicken, Color::kGreen); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.