Improve scripts for test environment configuration #13939
+307
−54
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR improves test environment configuration and test script usability.
Test Environment Configuration
Running
configurescript for installing dev quarto and thencd tests/andconfigure-test-envshould be all that is needed to configure the test environment or know what is missing.New Optional Dependency Checks
See
tests/README.mdfor complete documentation of optional dependencies.Test Script Improvements
npm Verbosity Reduction
Added
--loglevel=error --no-auditflags to all npm install commands to reduce noise from deprecation warnings and security audit reports during test setup.Windows Test Script Parity
Created
run-fast-tests.ps1for Windows users, matching the existingrun-fast-tests.shfunctionality:.venvfor Python test dependenciesrun-tests.ps1Environment Variable Documentation
Added comprehensive documentation in
tests/README.mdfor all test environment variables:QUARTO_TESTS_NO_CONFIG- Skip configure-test-env scriptsQUARTO_TESTS_FORCE_NO_VENV- Skip .venv activation (bash only)QUARTO_TEST_KEEP_OUTPUTS- Keep test artifacts for debuggingQUARTO_TEST_VERBOSE- Enable verbose test outputQUARTO_TESTS_NO_CHECK- Legacy variable (documented as unused)Keep Outputs Flag Support
Implemented
--keep-outputs/-kflag inrun-tests.ps1for Windows parity with bash version, allowing test artifacts to be preserved for debugging.Bug Fixes
Fixed PowerShell argument passing in
run-tests.ps1when invoked via call operator fromrun-fast-tests.ps1.Other Changes
Replaced yarn by npm to build the quarto-preview.js tool.