Skip to content

Back up and restore user state before/after integration tests #1821

@laert-ll

Description

@laert-ll

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.agreement is force-created via touch and never restored. On Windows, IDEasy's installer writes variables like IDE_ROOT and PATH modifications 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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestintegrationintegration into OS like file manager, terminal, etc.integration-testsautomated integration tests (see badge in README)internalNothing to be added to CHANGELOG, only internal storyready-to-implementtestrelated to testing and QA

Projects

Status

🏗 In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions