Open JunTaoLuo opened 1 month ago
Hey team! Please add your planning poker estimate with Zenhub @cferris32 @jenniemc @JunTaoLuo @ryanshaw @simiadebowale @vbahinwillit
Here are my current thoughts on this issue and I'm curious what folks think.
Given that we have already achieved 80% coverage mandated by the VA, it seems like the team is happy to deprioritize the work for additional test coverage. See below for current coverage:
In this spirit, I propose we close out the 23 unit-test issues that we currently have open to declutter our planning board. Instead we'll replace these with 4 issues that track a 4 phase approach to further improve our unit test coverage:
Thoughts?
I was thinking that it might be better to cleanup unit/e2e tests via cleanup of obsolete feature flags. I just went through that process when removing the 'va_online_scheduling_appointment_details_redesign' feature flag and found myself deleting or updating quite a few tests.
I don't remember all of the details on when feature flags are to be removed but we have quite a few that are 100% enabled in production. Also, removal of feature flags is part of our process.
I absolutely agree, in fact I was able to close one of the unit test ticket after your PR was merged. Regarding the Flipper toggles, I filed a spike ticket to review our feature flags for that exact purpose because one thing I like more than writing code is deleting code :smile:. However, even when we have removed all of the obsolete code/feature toggles I expect that there will still be a set of tests we need to add/update. When that time comes, I think we should take a phased approach so the work is more structured, which is what I proposed here.
Oh and one more thing. Even though I've mentioned this in standup, I'm going to add a note here that I expect us to delete quite a bit of code as part of https://github.com/department-of-veterans-affairs/va.gov-team/issues/84657 so that will help us figure out which tests we need as well.
Background/Request
As of 9/6/2024, the overall VAOS coverage statistics are as follows:
Although this meets the original epic goal, we would still have room for improvement. However, the previous issues filed for adding unit tests need to be review to ensure they are still relevant. One key consideration is that we are launching appointment details redesign in August after which many of the older components will be outdated and removed. We want to ensure we don't spend time adding unit tests for these soon to be obsolete components.
This will have significant overlap with https://github.com/department-of-veterans-affairs/va.gov-team/issues/84657 which tracks the removal of obsolete source code.
Goal
Requirements to Consider
Tasks
yarn test:coverage-app --app-folder vaos
in the root directory to generate the most up to date VAOS coverage statisticsTime Box
_ hours
Definition of Done