minikube/test/integration
Priya Wadhwa 53fac08913 fix lint 2020-01-14 13:20:58 -08:00
..
testdata Add test case to test file sync between host and VM. 2019-11-27 06:49:10 +11:00
README.md Fix typo in integration test readme 2019-10-25 14:55:54 -07:00
aaa_download_only_test.go updaate download only test to include kubectl release binary 2020-01-14 13:05:39 -08:00
aab_offline_test.go Merge branch 'master' into unthread-start 2020-01-09 14:50:17 -08:00
addons_test.go Replace integration-test specific hacks with actual protection against racey events 2020-01-09 12:58:10 -08:00
docker_test.go Merge master 2020-01-09 15:16:29 -08:00
driver_install_or_update_test.go Address merge conflicts 2019-10-21 11:12:06 -07:00
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 Double timeouts, filter image list further 2019-12-18 15:14:10 -08:00
functional_test.go fix lint 2020-01-14 13:20:58 -08:00
guest_env_test.go fix integration test 2020-01-13 12:03:26 -08:00
gvisor_addon_test.go Replace integration-test specific hacks with actual protection against racey events 2020-01-09 12:58:10 -08:00
helpers.go Replace integration-test specific hacks with actual protection against racey events 2020-01-09 12:58:10 -08:00
main.go Remove --start-offset flag 2020-01-09 13:41:52 -08:00
none_test.go replaced constants.GetMinipath() with localpath.MiniPath() 2019-09-19 23:28:20 +03:00
start_stop_delete_test.go Merge master 2020-01-09 15:16:29 -08:00
util.go Add renamed and refactored integration tests 2019-09-11 10:16:16 -07:00
version_upgrade_test.go Replace integration-test specific hacks with actual protection against racey events 2020-01-09 12:58:10 -08: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.