Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 1.23 KB

DeveloperFocus.md

File metadata and controls

17 lines (10 loc) · 1.23 KB

Focused testing

The e2e suite is written using the Ginkgo test framework and, therefore, benefits from all the default flags Ginkgo provides.

Running the following command will provide all the flags available when running the suite:

   ./bin/e2e-appstudio -h

Of interest to a developer are the --ginkgo.focus and --ginkgo.focus-file flags.

--ginkgo.focus accepts a regular expression string to match against for any of the strings used in a test "descriptors" (such as Context, It, When, etc). Multiple --ginkgo.focus flags can be provided on the command line. When run with the focus flags the suite will OR the flags and only run the matching tests, skipping the rest.

--ginkgo.focus-file can be used to specify a specific .go file (such as tests/build/build.go). Multiple --ginkgo.focus-file flags can be provided on the command line. When run with these flags the suite will OR the flags and only run the tests specified in those files, skipping the rest.

By using these or the other flags that Ginkgo provides you can run e2e-appstudio (after rebuilding to include your changes) focused on the changes that you have made to ensure they are working before you commit your code.