Skip to content

Instantly share code, notes, and snippets.

@psturc
Created June 2, 2020 06:44
Show Gist options
  • Save psturc/02bf22a62baa47974a03535d2724b968 to your computer and use it in GitHub Desktop.
Save psturc/02bf22a62baa47974a03535d2724b968 to your computer and use it in GitHub Desktop.
➜ integreatly-operator git:(master) ✗ go test -v ./test/functional -run=TestIntegreatly/Integreatly_Happy_Path_Tests/Verify_RHMI_CRD_Exists
=== RUN TestIntegreatly
=== RUN TestIntegreatly/Integreatly_Happy_Path_Tests
=== RUN TestIntegreatly/Integreatly_Happy_Path_Tests/Verify_RHMI_CRD_Exists
--- PASS: TestIntegreatly (0.56s)
--- PASS: TestIntegreatly/Integreatly_Happy_Path_Tests (0.54s)
--- PASS: TestIntegreatly/Integreatly_Happy_Path_Tests/Verify_RHMI_CRD_Exists (0.54s)
PASS
@b1zzu
Copy link

b1zzu commented Jun 11, 2020

shorter alternative

go test -v ./test/functional -run=//^Verify_RHMI_CRD_Exists

or in case of id

go test -v ./test/functional -run=//^C01

@psturc
Copy link
Author

psturc commented Jun 11, 2020

cool, I think this is the way we can go with running individual tests, thanks for that @b1zzu!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment