Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 820 Bytes

index.md

File metadata and controls

48 lines (33 loc) · 820 Bytes
title Testing
description How to run unit, integration, and end-to-end tests.

The repo includes unit tests, integration tests, and an end-to-end suite that provisions a Kind cluster and installs vcluster.

Quick commands

# Unit + integration
make test
# or

go test ./...
# E2E (creates kind + installs vcluster by default)
make e2e
# or

go test -tags=e2e ./test/e2e -v

DevSpace workflow

For fast inner-loop development, use DevSpace to sync the plugin binary into the vcluster pod:

make dev

To rebuild the binary (DevSpace will sync and restart):

make dev-build

To clean up the DevSpace environment:

make dev-purge

E2E details

See E2E Testing for environment variables, cluster lifecycle controls, and test coverage.