Run ginkgo test failed #5358
-
I'm trying to run ginkgo test with testkube and here is my config apiVersion: tests.testkube.io/v3
kind: Test
metadata:
labels:
executor: ginkgo-executor
test-type: ginkgo-test
name: integration-test
namespace: testkube
spec:
content:
repository:
type: git
authType: basic
branch: main
uri: uri
path: test_cases/integration_test
usernameSecret:
key: GIT_USERNAME
name: testkube
tokenSecret:
key: GIT_TOKEN
name: testkube
type: git
executionRequest:
argsMode: override
variables:
GinkgoParallel:
name: GinkgoParallel
type: basic
valueFrom: {}
GinkgoLabelFilter:
name: GinkgoLabelFilter
type: basic
value: --label-filter=integration
type: ginkgo/test After I applied test and start run test, I got error message said:
Is there any mistake in my kubernetes configuration? My folder structure is as below:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Additionally, I put some args override variable in my test yaml config. I found out that in
But when it go through
And then my default command became only What I expected is replace Where can I see a more comprehensive explanation? Or can you provide me with a complete example configuration? Thanks a lot. |
Beta Was this translation helpful? Give feedback.
-
when you provide a path, then Testkube does a parse checkout of this dir. eitther checkout the whole repo or move pkg files |
Beta Was this translation helpful? Give feedback.
-
Hi @vsukhin After following the instruction in document you provided, it change default command correctly. Here is my setting yaml apiVersion: tests.testkube.io/v3
kind: Test
metadata:
labels:
executor: ginkgo-executor
test-type: ginkgo-test
name: integration-test
namespace: testkube
spec:
content:
repository:
type: git
authType: basic
branch: main
uri: my-uri
path: test_cases/integration_test
usernameSecret:
key: GIT_USERNAME
name: testkube
tokenSecret:
key: GIT_TOKEN
name: testkube
type: git
executionRequest:
args:
- --label-filter=integration -r
argsMode: override
command:
- ginkgo
type: ginkgo/test But as my first question that my folder structure is as below.
If I don't provide folder path, it will say:
If I provide folder path that my tests are in, It will say
Do I have to put I can successfully test on my local environment with this folder structure, but when it is on kubernetes it fails. |
Beta Was this translation helpful? Give feedback.
yes, put them together