Files
windmill/cli/TESTING.md
Alexander Petric aa37f643e7 feat: git sync improvements (#6182)
* init checkpoint

* ui second pass...

* round 1 backend + saving settings + detecting changes...

* checkpoint

* fix openapi

* saving + correct wmill.yaml diff

* cli refactor

* cli and tests refactor done

* cli multi workspace support

* cli support skip core types to align with ui

* new test framework

* sqlx

* openapi spec

* frontend

* sync + settings changes

* some fixes

* some fixes

* security: Remove hardcoded EE license key, use environment variable only

- Remove hardcoded license key from containerized test backend
- Environment variable EE_LICENSE_KEY now required for EE features
- License key no longer stored in database during tests

* sqlx

* tests

* fixing tests

* fix tests

* checkpoint

* checkpoint

* cli build

* frontend - cli exchange

* settings match

* ee repo ref

* npm check

* openapi

* tests

* checkpoint

* cli + tests

* reset to preview on changes

* merge issue ee

* cleanup

* hubscript

* simplifications

* ee repo ref

* cli fixes

* fix sync and add tests

* extra test

* git sync settings / key change aware

* ee-repo ref

* ee-repo ref

* ee repo ref

* ee ref

* review 1

* ee ref

* Update frontend/src/lib/components/PullGitRepoPopover.svelte

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>

* Update frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>

* ee ref

* remove extra includes from ui

---------

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-07-15 16:25:31 +00:00

59 lines
1.6 KiB
Markdown

# Testing Guide for Windmill CLI
## Running Tests
```bash
# Run all tests
deno test -A --no-check test/
# Run specific test files
deno test -A --no-check test/gitsync_settings_features.test.ts
deno test -A --no-check test/init_no_git_sync.test.ts
deno test -A --no-check test/multi_instance_workspace.test.ts
deno test -A --no-check test/override_settings_behavior.test.ts
deno test -A --no-check test/sync_config_resolution.test.ts
deno test -A --no-check test/workspace_conflicts.test.ts
# Run with specific test patterns
deno test -A --no-check test/ --filter "workspace"
deno test -A --no-check test/ --filter "sync"
```
## Test Files
- **`gitsync_settings_features.test.ts`** - Git sync settings functionality
- **`init_no_git_sync.test.ts`** - Init without git sync
- **`multi_instance_workspace.test.ts`** - Multi-instance workspace handling
- **`override_settings_behavior.test.ts`** - Settings override behavior
- **`sync_config_resolution.test.ts`** - Sync configuration resolution
- **`workspace_conflicts.test.ts`** - Workspace conflict detection
## Docker Requirements
```bash
# Ensure Docker is running
docker --version
docker-compose --version
# Ensure EE license key is available
echo $EE_LICENSE_KEY
```
## Debugging Failed Tests
```bash
# Run with verbose output
deno test -A --no-check test/ --reporter=verbose
# Check container status
docker ps
# View backend logs
docker logs test-test_windmill_server-1
# Manual container management
cd test
docker compose -f docker-compose.test.yml up -d
docker compose -f docker-compose.test.yml down
docker compose -f docker-compose.test.yml down -v
```