Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .c8rc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"all": true,
"check-coverage": true,
"statements": 70,
"branches": 70,
"statements": 80,
"branches": 75,
"functions": 85,
"lines": 70,
"lines": 80,
"include": [
"src/**/*.{js,cjs}"
],
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ jobs:
run: npm ci
- name: Install dependencies (Playwright)
run: npx playwright install --with-deps
- name: Setup dependencies (WebdriverIO)
run: |
/usr/bin/chromedriver --version
echo "CHROMEDRIVER_PATH=/usr/bin/chromedriver" >> $GITHUB_ENV
- name: Run tests
id: tests
run: npm run test:all
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"test:integration:mocha": "mocha --config test/integration/data/configs/mocha.cjs || exit 0",
"test:integration:playwright": "playwright test --config test/integration/data/configs/playwright.js || exit 0",
"test:integration:web-test-runner": "wtr --config test/integration/data/configs/web-test-runner.js || exit 0",
"test:integration:webdriverio": "wdio run test/integration/data/configs/webdriverio.cjs || exit 0",
"test:integration:validate-reports": "mocha --reporter-options reportPath=./d2l-test-report-validation.json --spec test/integration/report-validation.test.js",
"test:unit": "mocha --spec \"test/unit/**/*.test.js\""
},
Expand Down
6 changes: 6 additions & 0 deletions test/integration/report-validation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Report } from '../../src/helpers/report.cjs';
import { testReportLatestPartial as testReportLatestPartialMocha } from './data/validation/test-report-mocha.js';
import { testReportLatestPartial as testReportLatestPartialPlaywright } from './data/validation/test-report-playwright.js';
import { testReportLatestPartial as testReportLatestPartialWebTestRunner } from './data/validation/test-report-web-test-runner.js';
import { testReportLatestPartial as testReportLatestPartialWebdriverIO } from './data/validation/test-report-webdriverio.js';
import yn from 'yn';

use(chaiSubset);
Expand Down Expand Up @@ -43,6 +44,11 @@ const reportTests = [{
version: latestReportVersion,
path: './d2l-test-report-web-test-runner.json',
expected: testReportLatestPartialWebTestRunner
}, {
name: 'webdriverio',
version: latestReportVersion,
path: './d2l-test-report-webdriverio.json',
expected: testReportLatestPartialWebdriverIO
}];
const results = reportTests.reduce((acc, cur) => {
acc[cur.name] = {
Expand Down