-
Notifications
You must be signed in to change notification settings - Fork 4
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
spike/9918-rachael-detox-add-what-to-run-to-code #9919
spike/9918-rachael-detox-add-what-to-run-to-code #9919
Conversation
@rbontrager Since we're having spelling issues, is there a way to auto generate the mappings we need? |
@timwright12 Not without adding unused variables to the code (so we could see what e2e tests needed to be used). I set up a meeting with the engineers and that was determined not to be an optimal solution. What I did in this ticket seemed like a good compromise. Yes you still have to manually type in stuff to the mapping file but the workflow should catch if you have mistyped the file/directory name or mistyped detox test name and error out. It also makes sure that all files changed are in the mapping in the first place and errors out if they aren't (which should make it easier to keep it up to date). I ran my logic against everything I typed into the mapping file and fixed all the typos caught so it should be up to date (well up to date as of 3 weeks ago). |
@rbontrager ok sounds good, can you also make sure documentation around this is up to date? |
Description of Change
The detox mapping file was always getting out of date/had multiple misspellings that was causing it to not run the correct files when it should. To combat this I've reduced the numbers of files specifically checked as much as possible and added more encompassing directory checks. I've also add jobs that will check that files/directories changed are in detox mapping file, that the directory/file names are spelled correctly, and that the e2eNames are spelled correctly. If any of these jobs fail find_detox_tests_to_run will fail and cause the e2e_android test to fail and appear as a failure in the PR check.
Screenshots/Video
Running test: https://github.com/department-of-veterans-affairs/va-mobile-app/actions/runs/11798447379
Misspelled e2eNames
Misspelled directoryNames
Testing
Reviewer Validations
PR Checklist
Reviewer: Confirm the items below as you review
For QA
Run a build for this branch