minikube/test/integration
Medya Gh 825d7bbeca fix integration test 2019-12-20 12:24:05 -08:00
..
testdata Add test case to test file sync between host and VM. 2019-11-27 06:49:10 +11:00
README.md
aaa_download_only_test.go Enforce that offline test runs right after download test 2019-12-18 15:15:48 -08:00
aab_offline_test.go Enforce that offline test runs right after download test 2019-12-18 15:15:48 -08:00
addons_test.go Fix metrics-server to be able to collect metrics and add integration test 2019-11-17 01:01:48 +09:00
docker_test.go Add integration test 2019-12-10 14:02:12 -08:00
driver_install_or_update_test.go
fn_mount_cmd.go Double pod test waits 2019-11-13 06:42:07 -08:00
fn_pvc.go Double pod test waits 2019-11-13 06:42:07 -08:00
fn_tunnel_cmd.go
functional_test.go fix integration test 2019-12-20 12:24:05 -08:00
guest_env_test.go
gvisor_addon_test.go Double pod test waits 2019-11-13 06:42:07 -08:00
helpers.go
main.go
none_test.go
start_stop_delete_test.go Don't check image versions with the none driver (no crictl) 2019-12-10 17:53:04 -08:00
util.go
version_upgrade_test.go Fix --kubernetes-version for upgrading cluster to correct version 2019-11-16 21:12:54 +11:00

README.md

Integration tests

The basics

To run all tests from the minikube root directory:

make integration

Quickly iterating on a single test

Run a single test on an active cluster:

make integration -e TEST_ARGS="-test.run TestFunctional/parallel/MountCmd --profile=minikube --cleanup=false"

WARNING: For this to work repeatedly, the test must be written so that it cleans up after itself.

See main.go for details.

Disabling parallelism

make integration -e TEST_ARGS="-test.parallel=1"

Testing philosophy

  • Tests should be so simple as to be correct by inspection
  • Readers should need to read only the test body to understand the test
  • Top-to-bottom readability is more important than code de-duplication

Tests are typically read with a great air of skepticism, because chances are they are being read only when things are broken.