Skip to content

Commit 5391eb4

Browse files
committed
feat: init commit
1 parent e7d1e2e commit 5391eb4

File tree

7 files changed

+1369
-0
lines changed

7 files changed

+1369
-0
lines changed

.github/workflows/test.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Pactum Mocha Tests
2+
on:
3+
push:
4+
branches: [ main ]
5+
pull_request:
6+
branches: [ main ]
7+
workflow_dispatch:
8+
jobs:
9+
test:
10+
timeout-minutes: 10
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: lts/*
17+
- name: Install dependencies
18+
run: npm ci
19+
- name: Run Pactum Mocha tests
20+
run: npm run test
21+
- run: npx testbeats@latest publish --slack ${{ secrets.SLACK_MVP_URL }} --junit reports/junit.xml --ci-info --chart-test-summary
22+
if: always()
23+
env:
24+
TEST_BEATS_API_KEY: ${{ secrets.TEST_BEATS_API_KEY }}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# example-pactum-mocha-testbeats
2+
23
example repo to showcase integration of pactum and mocha with testbeats

mocha.report.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"reporterEnabled": "spec, mocha-junit-reporter",
3+
"mochaJunitReporterReporterOptions": {
4+
"mochaFile": "reports/junit.xml"
5+
}
6+
}

0 commit comments

Comments
 (0)