Skip to content

Commit

Permalink
chore: retryable e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrliptontea committed Aug 9, 2024
1 parent 9f7e2ed commit 9318f7b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,18 @@ jobs:
name: Run e2e tests
environment:
DEBUG_DETIK: "true"
command: npm run e2e
command: |
mkdir test-results
# dummy directory passed to bats as first to force absolute paths
# in JUnit, see https://github.com/bats-core/bats-core/issues/913
mkdir dummy
TEST_FILES=$(circleci tests glob "e2e/*.bats")
echo "$TEST_FILES" | circleci tests run --verbose \
--command="xargs npm exec -- bats --jobs 4 --no-parallelize-within-files --timing --print-output-on-failure --report-formatter junit --output test-results dummy"
- store_artifacts:
path: /tmp/detik
- store_test_results:
path: test-results

workflows:
build:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
coverage
node_modules
.vscode/
test-results/
junit.xml
.huskyrc

Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ imports/**/*.ts
lib/**/*.ts
!lib/**/*.d.ts
test
test-results
2 changes: 1 addition & 1 deletion e2e/full-stack.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class FullStackChart extends TalisChart {
const { domain, watermark } = props;
const applicationPort = 9898;
const podinfoVersion = "6.1.3";
const mongoVersion = "5.0.7";
const mongoVersion = "4.4.29";
const redisVersion = "5.0.7";
const busyboxVersion = "1.35.0";
const busyboxImage = `docker.io/busybox:${busyboxVersion}`;
Expand Down

0 comments on commit 9318f7b

Please sign in to comment.