From 9d023be1d16a6bf7427569f863e6cfd2c3442d8b Mon Sep 17 00:00:00 2001 From: Tommaso Sciortino Date: Tue, 12 Aug 2025 15:57:27 -0700 Subject: Upgrade integration tests to use Vitest (#6021) --- docs/integration-tests.md | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'docs') diff --git a/docs/integration-tests.md b/docs/integration-tests.md index 7a4c8489..6289b7a7 100644 --- a/docs/integration-tests.md +++ b/docs/integration-tests.md @@ -67,13 +67,9 @@ The integration test runner provides several options for diagnostics to help tra You can preserve the temporary files created during a test run for inspection. This is useful for debugging issues with file system operations. -To keep the test output, you can either use the `--keep-output` flag or set the `KEEP_OUTPUT` environment variable to `true`. +To keep the test output set the `KEEP_OUTPUT` environment variable to `true`. ```bash -# Using the flag -npm run test:integration:sandbox:none -- --keep-output - -# Using the environment variable KEEP_OUTPUT=true npm run test:integration:sandbox:none ``` @@ -81,20 +77,20 @@ When output is kept, the test runner will print the path to the unique directory ### Verbose output -For more detailed debugging, the `--verbose` flag streams the real-time output from the `gemini` command to the console. +For more detailed debugging, set the `VERBOSE` environment variable to `true`. ```bash -npm run test:integration:sandbox:none -- --verbose +VERBOSE=true npm run test:integration:sandbox:none ``` -When using `--verbose` and `--keep-output` in the same command, the output is streamed to the console and also saved to a log file within the test's temporary directory. +When using `VERBOSE=true` and `KEEP_OUTPUT=true` in the same command, the output is streamed to the console and also saved to a log file within the test's temporary directory. The verbose output is formatted to clearly identify the source of the logs: ``` ---- TEST: : --- +--- TEST: : --- ... output from the gemini command ... ---- END TEST: : --- +--- END TEST: : --- ``` ## Linting and formatting -- cgit v1.2.3