-
Notifications
You must be signed in to change notification settings - Fork 65
Back up and restore user state before/after integration tests #1821
Copy link
Copy link
Labels
enhancementNew feature or requestNew feature or requestintegrationintegration into OS like file manager, terminal, etc.integration into OS like file manager, terminal, etc.integration-testsautomated integration tests (see badge in README)automated integration tests (see badge in README)internalNothing to be added to CHANGELOG, only internal storyNothing to be added to CHANGELOG, only internal storyready-to-implementtestrelated to testing and QArelated to testing and QA
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestintegrationintegration into OS like file manager, terminal, etc.integration into OS like file manager, terminal, etc.integration-testsautomated integration tests (see badge in README)automated integration tests (see badge in README)internalNothing to be added to CHANGELOG, only internal storyNothing to be added to CHANGELOG, only internal storyready-to-implementtestrelated to testing and QArelated to testing and QA
Type
Projects
Status
🏗 In progress
Feature idea
When running integration tests (
all-tests.sh) locally, the test runner produces side effects on the user's environment that are only partially cleaned up. Shell RC files (~/.bashrc,~/.zshrc) are currently backed up and restored via an EXIT trap, but~/.ide/.license.agreementis force-created via touch and never restored. On Windows, IDEasy's installer writes variables likeIDE_ROOTandPATHmodifications into the registry, where they persist across sessions.The integration tests should fully preserve the user's pre-existing state. Before the run, all relevant files and environment variables that the tests or IDEasy itself may modify should be backed up and restored after the run.
Related issue: #1337
Additional context
No response