Skip to content
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

devenv-run-tests: improve reproducibility of test runs #1690

Merged
merged 10 commits into from
Jan 29, 2025
Merged

Conversation

sandydoo
Copy link
Member

@sandydoo sandydoo commented Jan 27, 2025

  • Clear the environment before running tests. This prevents test failures (or successes) due to environment pollution.
  • Copy the test directory's contents to a temporary directory. Avoids polluting the source directory with test files.
  • Initialise a git repo in the temporary directory. Allows Nix and git-hooks to correctly find the project root directory.

Copy link

cloudflare-workers-and-pages bot commented Jan 27, 2025

Deploying devenv with  Cloudflare Pages  Cloudflare Pages

Latest commit: 24745ec
Status: ✅  Deploy successful!
Preview URL: https://1d5a0c29.devenv.pages.dev
Branch Preview URL: https://fix-test-env.devenv.pages.dev

View logs

@sandydoo sandydoo changed the title devenv-run-tests: clear env before running tests devenv-run-tests: improve reproducibility of test runs Jan 27, 2025
@sandydoo sandydoo marked this pull request as ready for review January 28, 2025 19:53
@sandydoo sandydoo merged commit cbe727b into main Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant