minikube/test/integration
Kenta Iso 169855b296 Add log if TestFunctional/parallel/MySQL fails: e.g. CrashLoopBackOff 2020-04-18 20:09:33 +09: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 Rebased 2020-03-26 11:01:28 -07:00
aab_offline_test.go convert all rr.Args to rr.Command() 2020-03-25 22:21:19 -07:00
addons_test.go Update integration tests 2020-04-01 13:01:12 -07:00
cert_options_test.go Update TestCertOptions 2020-04-09 23:02:00 -07:00
docker_test.go convert all rr.Args to rr.Command() 2020-03-25 22:21:19 -07:00
driver_install_or_update_test.go search and replace cleanup 2020-02-11 17:11:23 -08:00
error_spam_test.go Add regexp import 2020-04-16 17:42:37 -07:00
fn_mount_cmd.go clean up after test dirs 2020-04-14 19:33:26 -07:00
fn_pvc.go convert all rr.Args to rr.Command() 2020-03-25 22:21:19 -07:00
fn_tunnel_cmd.go Add DNS forwarding to tunnel integration tests, make it work on macOS 2020-04-17 11:44:32 -07:00
functional_test.go Add log if TestFunctional/parallel/MySQL fails: e.g. CrashLoopBackOff 2020-04-18 20:09:33 +09:00
guest_env_test.go Fix misspelling of existence in integration test 2020-03-27 09:33:21 +01:00
gvisor_addon_test.go convert all rr.Args to rr.Command() 2020-03-25 22:21:19 -07:00
helpers.go use sudo for du 2020-04-09 22:40:23 -07:00
main.go Pick a more universal hostname, add comment about docker 2020-04-01 14:38:46 -07:00
multinode_test.go lint 2020-04-16 16:01:21 -07:00
none_test.go convert all rr.Args to rr.Command() 2020-03-25 22:21:19 -07:00
pause_test.go wait all 2020-04-16 11:51:09 -07:00
preload_test.go fix lint 2020-04-17 11:59:27 -07:00
start_stop_delete_test.go Upgrade oldest supported k8s version to v1.12.0 2020-04-17 11:58:09 -07:00
util.go update comment 2020-04-17 13:42:46 -07:00
version_upgrade_test.go Fix testing regression which broke stdout reads 2020-03-26 08:11:39 -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.