Skip to content

Commit 82d5a08

Browse files
Add SR e2e testing (#255)
* Add SR e2e testing * chore: update sonar-project.properties to reconfigure sonarqube scanning.
1 parent 12e175a commit 82d5a08

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.semaphore/semaphore.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ blocks:
116116
commands:
117117
- make docs
118118

119-
- name: "(SR) Linux amd64: test"
119+
- name: "(SR) Linux amd64: test, e2e"
120120
dependencies: [ ]
121121
task:
122122
agent:
@@ -125,13 +125,17 @@ blocks:
125125
prologue:
126126
commands:
127127
- npm install
128+
- cd schemaregistry
128129
jobs:
129130
- name: "Test"
130131
commands:
131-
- cd schemaregistry
132132
#TODO: Understand why first run fails
133133
- npm run test || npm run test || npm run test
134134
- artifact push workflow coverage/jest/coverage-final.json --destination "jest-sr-coverage.json"
135+
- name: "e2e tests"
136+
commands:
137+
- '[[ -z $DOCKERHUB_APIKEY ]] || docker login --username $DOCKERHUB_USER --password $DOCKERHUB_APIKEY'
138+
- make integtest
135139

136140
- name: "Linux amd64: Performance"
137141
dependencies: [ ]

service.yml

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ sonarqube:
2929
- "**/mk-include/**/*"
3030
- "examples/**"
3131
- "schemaregistry-examples/**"
32+
- "schemaregistry/e2e/**"
3233
languages:
3334
- "javascript"
3435
- "typescript"

sonar-project.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### service-bot sonarqube plugin managed file
22
sonar.coverage.exclusions=**/test/**/*,**/tests/**/*,**/mock/**/*,**/mocks/**/*,**/*mock*,**/*test*
33
sonar.cpd.exclusions=**/test/**/*,**/tests/**/*,**/mock/**/*,**/mocks/**/*,**/*mock*,**/*test*
4-
sonar.exclusions=**/*.pb.*,**/mk-include/**/*,examples/**,schemaregistry-examples/**
4+
sonar.exclusions=**/*.pb.*,**/mk-include/**/*,examples/**,schemaregistry-examples/**,schemaregistry/e2e/**
55
sonar.javascript.lcov.reportPaths=./coverage/lcov.info
66
sonar.language=javascript,typescript
77
sonar.projectKey=confluent-kafka-javascript

0 commit comments

Comments
 (0)