DEPRECATED
May 24, 2023 ยท View on GitHub
This executor was moved into Testkube repository.

Welcome to the Testkube Ginkgo Executor
The Kubetest Ginkgo Executor is a test executor for testkube.
Issues and enchancements
Please visit the main Testkube repository for reporting any issues or discussions.
Details
Supports Ginkgo v2 Only
Ginkgo v1 is unsupported by this executor.
Supports Git Repo Testing Only
Example testkube create test call, git by branch:
$ testkube create test --git-uri <URI TO A GOLANG REPO THAT CONTAINS GINKGO TESTS> --git-branch main --name ginkgo-test --type ginkgo/test --git-username <GIT USER> --git-token=<GIT TOKEN>
Example testkube create test call, git by commit id:
$ testkube create test --git-uri <URI TO A GOLANG REPO THAT CONTAINS GINKGO TESTS> --git-commit <GIT COMMIT ID/SHA> --name ginkgo-test --type ginkgo/test --git-username <GIT USER> --git-token=<GIT TOKEN>
Parameters:
Pass in/override Ginkgo parameters with -v Variables.
GinkgoTestPackage, default:""GinkgoRecursive, default:-rGinkgoParallel, default:-pGinkgoParallelProcs, default:"", usage:--procs NGinkgoCompilers, default:"", usage:--compilers NGinkgoRandomize, default:--randomize-allGinkgoRandomizeSuites, default:--randomize-suitesGinkgoLabelFilter, default:"", usage:--label-filter QUERYGinkgoFocusFilter, default:"", usage:--focus REGEXPGinkgoSkipFilter, default:"", usage:--skip REGEXPGinkgoUntilItFails, default:"", usage:--until-it-failsGinkgoRepeat, default:"", usage:--repeat NGinkgoFlakeAttempts, default:"", usage:--flake-attempts NGinkgoTimeout, default:"", usage:--timeout=durationGinkgoSkipPackage, default:"", usage:--skip-package list,of,packagesGinkgoFailFast, default:"", usage:--fail-fastGinkgoKeepGoing, default:"--keep-going", usage:--keep-goingGinkgoFailOnPending, default:"", usage:--fail-on-pendingGinkgoCover, default:"", usage:--coverGinkgoCoverProfile, default:"", usage:--coverprofile cover.profileGinkgoRace, default:"", usage:--raceGinkgoTrace, default:"--trace"GinkgoJsonReport, default:"", usage:--json-report report.jsonGinkgoJunitReport, default:"--junit-report report.xml"GinkgoTeamCityReport, default:"", usage:--teamcity-report report.teamcity
Pass-through args to Ginkgo:
Add --args '--base-url=example.com --some-arg=value' to testkube run test command.
Example CLI Test Execution Calls
testkube run test ginkgo-test -f: Executes the testkube namedginkgo-testand will run (recursively, with -r flag) all Ginkgo tests within the repo.testkube run test ginkgo-test -f -v GinkgoTestPackage=e2e: Executes the testkube namedginkgo-testand overridesGinkgoTestPackageto run thee2epackage in the repo.testkube run test ginkgo-test -f -v GinkgoSkipPackage="--skip-package other,other2" -v GinkgoParallel="": Executes the testkube and skips packages namedotherandother2, as well as turns off Parallel Execution.testkube run test ginkgo-test -f -v GinkgoTestPackage=e2e ---args '--base-url=example.com': Executes the e2e test package and provies a passthrough arg namedbase-urlset toexample.com.
Artifacts
JUnit report is generated by default and needed for parsing into Testkube results. You can also optionally turn on Json report and/or TeamCity report.
Any reports generated will be archived by the executor and put into Testkube.
Architecture
- TODO add architecture diagrams
API
Cypress executor implements testkube OpenAPI for executors (look at executor tag).