From 24fd4bf03102513982f928b7248c3125c2559534 Mon Sep 17 00:00:00 2001 From: Jonathan Berkhahn Date: Fri, 6 Mar 2020 15:27:54 -0800 Subject: [PATCH] Add docs about not running e2e testing m directly Co-Authored-By: Eric Stroczynski --- doc/test-framework/writing-e2e-tests.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/test-framework/writing-e2e-tests.md b/doc/test-framework/writing-e2e-tests.md index 7e9964e883b..00bd32602bc 100644 --- a/doc/test-framework/writing-e2e-tests.md +++ b/doc/test-framework/writing-e2e-tests.md @@ -16,7 +16,10 @@ about are Framework and Context. [Framework][framework-link] contains all global variables, such as the kubeconfig, kubeclient, scheme, and dynamic client (provided via the controller-runtime project). -It is initialized by MainEntry and can be used anywhere in the tests. +It is initialized by the MainEntry function and can be used anywhere in the tests. + +**Note:** several required arguments are initialized and added by `MainEntry()`. Do not attempt to +use `testing.M` directly. ### Context