minikube/test/integration
Thomas Strömberg 8e9d8a221c
Merge pull request #7134 from tstromberg/test-download-only
download_only_test: Fix non-docker runtimes, remove expected-driver test
2020-03-21 14:48:01 -07:00
..
testdata Add certificate sync integration test 2020-03-04 14:48:40 -08:00
README.md Fix typo in integration test readme 2019-10-25 14:55:54 -07:00
aaa_download_only_test.go Remove broken ExpectedDefaultDriver test, fix call to PreloadExists 2020-03-21 10:22:45 -07:00
aab_offline_test.go Set explicit memory defaults in integration tests 2020-03-05 13:03:57 -08:00
addons_test.go bumpup helm-tiller v2.16.1 → v2.16.3 and add integration test for tiller 2020-03-21 18:27:57 +09:00
docker_test.go Set explicit memory defaults in integration tests 2020-03-05 13:03:57 -08:00
driver_install_or_update_test.go search and replace cleanup 2020-02-11 17:11:23 -08:00
fn_mount_cmd.go change all timeouts in the integration tests 2020-02-20 16:40:18 -08:00
fn_pvc.go change all timeouts in the integration tests 2020-02-20 16:40:18 -08:00
fn_tunnel_cmd.go change all timeouts in the integration tests 2020-02-20 16:40:18 -08:00
functional_test.go Merge pull request #6889 from tstromberg/symlink-inversion 2020-03-04 16:29:18 -08:00
guest_env_test.go Set explicit memory defaults in integration tests 2020-03-05 13:03:57 -08:00
gvisor_addon_test.go Set explicit memory defaults in integration tests 2020-03-05 13:03:57 -08:00
helpers.go Promote status function to one that should be used across tests 2020-01-30 14:36:39 -08:00
main.go Remove unused code 2020-03-21 10:47:58 -07:00
none_test.go Update KUBECONFIG for change non user test 2020-03-12 08:13:48 +11:00
start_stop_delete_test.go Trim crio prefix, dedup results 2020-03-21 10:47:08 -07:00
util.go Add renamed and refactored integration tests 2019-09-11 10:16:16 -07:00
version_upgrade_test.go Merge conflict 2020-03-05 15:33:46 -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.