From f50241d4a3be02fad179f8ec1ddcc44276e17e63 Mon Sep 17 00:00:00 2001 From: Andrew Slotin Date: Wed, 18 Oct 2023 18:08:47 +0200 Subject: [PATCH] Use options.ext.loadimpact to provide cloud config in a new script --- cmd/init.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/cmd/init.go b/cmd/init.go index 0b85337b8dd..175c2a2d6f0 100644 --- a/cmd/init.go +++ b/cmd/init.go @@ -30,13 +30,15 @@ export const options = { // See https://grafana.com/docs/grafana-cloud/k6/get-started/run-cloud-tests-from-the-cli/ // to learn about authoring and running k6 test scripts in Grafana k6 Cloud. // - // cloud: { - // // The ID of the project to which the test is assigned in the k6 Cloud UI. - // // By default tests are executed in default project. - // projectID: "", - // // The name of the test in the k6 Cloud UI. - // // Test runs with the same name will be grouped. - // name: "{{ .ScriptName }}" + // ext: { + // loadimpact: { + // // The ID of the project to which the test is assigned in the k6 Cloud UI. + // // By default tests are executed in default project. + // projectID: "", + // // The name of the test in the k6 Cloud UI. + // // Test runs with the same name will be grouped. + // name: "{{ .ScriptName }}" + // } // }, // Uncomment this section to enable the use of Browser API in your tests.