minikube/test/integration
tstromberg b27e926967 Skip DashboardCmd test on Windows 2019-11-06 14:14:56 -08:00
..
testdata default-ulimit should be an arg, not an environment var 2019-10-29 07:56:31 -07:00
README.md Fix typo in integration test readme 2019-10-25 14:55:54 -07:00
a_serial_test.go Add more debug logs 2019-10-24 20:34:38 -07:00
addons_test.go Refactor wait code into WaitForStartSlot to avoid parallel conflation 2019-10-30 09:27:25 -07:00
docker_test.go Refactor wait code into WaitForStartSlot to avoid parallel conflation 2019-10-30 09:27:25 -07:00
driver_install_or_update_test.go Address merge conflicts 2019-10-21 11:12:06 -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 Skip DashboardCmd test on Windows 2019-11-06 14:14:56 -08:00
guest_env_test.go Refactor wait code into WaitForStartSlot to avoid parallel conflation 2019-10-30 09:27:25 -07:00
gvisor_addon_test.go Refactor wait code into WaitForStartSlot to avoid parallel conflation 2019-10-30 09:27:25 -07:00
helpers.go Merge pull request #5794 from tstromberg/none-reliable 2019-10-30 15:27:22 -07:00
main.go Improve start offsets in MaybeSlowParallel by using a schedule 2019-10-30 07:47:09 -07:00
none_test.go replaced constants.GetMinipath() with localpath.MiniPath() 2019-09-19 23:28:20 +03:00
start_stop_delete_test.go Refactor wait code into WaitForStartSlot to avoid parallel conflation 2019-10-30 09:27:25 -07:00
util.go Add renamed and refactored integration tests 2019-09-11 10:16:16 -07:00
version_upgrade_test.go Refactor wait code into WaitForStartSlot to avoid parallel conflation 2019-10-30 09:27:25 -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.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.