Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch at risk matrix #53

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# @digitalbazaar/mocha-w3c-interop-reporter ChangeLog

## 1.9.1 -

### Fixed
- At Risk Matrix is now an actual Mocha Suite.

## 1.9.0 - 2024-09-30

### Added
Expand Down
3 changes: 2 additions & 1 deletion lib/extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* Copyright (c) 2024 Digital Bazaar, Inc. All rights reserved.
*/
import {atRisk} from './utils.js';
import {Suite} from 'mocha';

/**
* Extensions are functions that extend test data reports.
Expand All @@ -14,7 +15,7 @@ export const extensions = {
const atRiskRows = getAtRisk({matrices: templateData.matrices});
if(atRiskRows.length) {
const atRiskMatrix = {
title: 'At Risk',
...new Suite('At Risk'),
rowLabel: 'Statement',
columnLabel: 'Reason',
columns: ['At least 2 passing implementations'],
Expand Down