You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added support for local template files in the `k6 new` command
* Do not create a script file if the template is invalid
* Use fsext to read templates in `k6 new` command
* Avoid using os package in `k6 new` tests except for the os.Remove()
* Refine the test matcher message
Co-authored-by: İnanç Gümüş <inanc.gumus@grafana.com>
* Update the help message for the new command to include a note about custom templates
* Do not shadow the return error in the defer function
* Simplify the check whether a template type is a file path
* Resolve template file path to an absolute path before reading it
---------
Co-authored-by: İnanç Gümüş <inanc.gumus@grafana.com>
flags.StringVar(&c.templateType, "template", "minimal", "template type (choices: minimal, protocol, browser)")
28
+
flags.StringVar(&c.templateType, "template", "minimal", "template type (choices: minimal, protocol, browser) or relative/absolute path to a custom template file") //nolint:lll
27
29
flags.StringVar(&c.projectID, "project-id", "", "specify the Grafana Cloud project ID for the test")
0 commit comments