Reuse integration test project data in RootSite tests#891
Conversation
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Reworks RootSite real-data test setup/teardown to reuse a fixed integration test project name and clean up the created project directory between runs, avoiding accumulation of dummy projects.
Changes:
- Use a constant project name (
integration_test_data) instead of a per-run GUID project name. - Delete the project directory before setup and after teardown.
- Track the created project directory from
CreateNewLangProjand reuse it for cleanup.
NUnit Tests 1 files ±0 1 suites ±0 11m 34s ⏱️ + 1m 1s Results for commit 9dab396. ± Comparison against base commit 5ce891b. This pull request removes 2 and adds 1 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
c547de1 to
9348219
Compare
|
Look at SIL.IO.RobustIO.DeleteDirectoryAndContents to replace most of this methd. |
|
There is an unlikely but potentially problematic situation where either DisposeCache or the TryDeleteProjectDirectoryAfterSetupFailure throw, which would not release the Mutex. Might want to guard against that. |
9348219 to
f5fed92
Compare
|
Addressed Jason's two review points in the local follow-up.
Local validation:
Relevant local anchors:
|
|
Previously, jasonleenaylor (Jason Naylor) wrote…
fixed |
|
Previously, jasonleenaylor (Jason Naylor) wrote…
Changed out - I also added a skill to guide the AI to use SIL's models. |
jasonleenaylor
left a comment
There was a problem hiding this comment.
@jasonleenaylor reviewed 3 files and all commit messages, and made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on johnml1135).
Summary
integration_test_dataproject name inRealDataTestsBaseinstead of generating a newRealDataTest_<guid>project for each runValidation
./test.ps1 -TestProject RootSiteTests -TestFilter "FullyQualifiedName~RenderVerifyTests" -NoBuildCI: Whitespace checkCI: Commit messagesThis change is