minikube/test/integration
Thomas Strömberg 61da2b0708
Merge pull request #5465 from tstromberg/gvisor-2
Re-enable gvisor tests now that #5305 is resolved
2019-09-26 11:59:54 -07:00
..
testdata Add hyperkit installOrUpdate test 2019-09-18 13:06:48 -03:00
README.md Add missing philosophy section 2019-09-16 06:41:44 -07:00
a_download_only_test.go resolve circular import problem 2019-09-19 23:34:28 +03:00
addons_test.go Offset integration tests which start clusters by 5s 2019-09-17 07:08:57 -07:00
docker_test.go Merge pull request #5382 from tstromberg/too-much-logs 2019-09-17 10:47:11 -07:00
driver_install_or_update_test.go Pass driver name rather than executable name 2019-09-18 15:08:53 -07:00
fn_mount_cmd.go Address PR comment: skip failing mount test on hyperv 2019-09-12 17:13:38 -07:00
fn_pvc.go Double context.WithTimeout durations for slower test machines 2019-09-11 15:20:19 -07:00
fn_tunnel_cmd.go Remove -f from kubectl get svc call, increase timeout 2019-09-11 15:18:36 -07:00
functional_test.go Extend TestFunctional context timeout to 40 minutes 2019-09-11 16:19:25 -07:00
guest_env_test.go Offset integration tests which start clusters by 5s 2019-09-17 07:08:57 -07:00
gvisor_addon_test.go Re-enable gvisor tests now that #5305 is resolved 2019-09-25 16:56:06 -07:00
helpers.go Offset integration tests which start clusters by 5s 2019-09-17 07:08:57 -07:00
main.go Minor tuning of test log verbosity 2019-09-13 07:42:30 -07:00
none_test.go replaced constants.GetMinipath() with localpath.MiniPath() 2019-09-19 23:28:20 +03:00
start_stop_delete_test.go Offset integration tests which start clusters by 5s 2019-09-17 07:08:57 -07:00
util.go Add renamed and refactored integration tests 2019-09-11 10:16:16 -07:00
version_upgrade_test.go Wait up to 55m (just short of 60m default) 2019-09-23 11:00:01 -07: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.v -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.