Skip to content

Commit

Permalink
Adding e2e tests automated setup (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoscar authored Jan 2, 2024
1 parent 07e50db commit c084086
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
TRACETEST_API_TOKEN=
POKESHOP_DEMO_URL=
TRACETEST_AGENT_API_KEY=
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ api/.build/
.DS_Store
.env

cypress/screenshots
cypress/screenshots
cypress/downloads
2 changes: 1 addition & 1 deletion cypress/e2e/1-getting-started/home.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('Home', { defaultCommandTimeout: 60000 }, () => {
- selector: span[tracetest.span.type="database"]
name: "All Database Spans: Processing time is less than 100ms"
assertions:
- attr:tracetest.span.duration < 100ms
- attr:tracetest.span.duration < 2s
outputs:
- name: MY_OUTPUT
selector: span[tracetest.span.type="general" name="Tracetest trigger"]
Expand Down
11 changes: 11 additions & 0 deletions docker-compose.e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '3.5'
name: pokeshop

services:
tracetest-agent:
environment:
TRACETEST_DEV: ${TRACETEST_DEV}
TRACETEST_API_KEY: ${TRACETEST_AGENT_API_KEY}
image: kubeshop/tracetest-agent:latest
networks:
default: null

0 comments on commit c084086

Please sign in to comment.