Releases: cenfun/monocart-reporter
Releases · cenfun/monocart-reporter
2.9.0
2.8.0
What's Changed
- (New Feature) added new
merge
command for CLI:npx monocart merge path-to/*/*.json
(#142) - added
onData
hook (#141) - better support for playwright multiple reports generation:
- added new option
copyAttachments
to copy attachments for reporter (#143) - updated default
outputFile
to ./monocart-report/index.html from ./test-results/report.html
- added new option
Full Changelog: 2.7.1...2.8.0
2.7.0
What's Changed
- improved the
merge
API (#139)- supports coping and merging attachments
- supports merging coverage reports
- added
Side by side
andSlider
tab for visual comparisons (#140) - fixed mermaid supports loading local dist file with
scriptSrc=null
- fixed expected image path
Full Changelog: 2.6.5...2.7.0
2.6.0
What's Changed
- added new API
setMetadata(data, testInfo)
for data driven tests (#132)
Custom Fields with setMetadata()
Using API setMetadata()
can be applicable to dynamically created tests
const { test } = require('@playwright/test');
const { setMetadata } = require('monocart-reporter');
test.describe('Data Driven Tests with setMetadata(data, testInfo)', () => {
const list = [{
title: 'Example Case 1 Data Driven Test',
owner: 'Jensen',
jira: 'MCR-16889',
}, {
title: 'Example Case 2 Data Driven Test',
owner: 'Mark',
jira: 'MCR-16899'
}];
list.forEach((item, i) => {
test(item.title, () => {
setMetadata({
owner: item.owner,
jira: item.jira
}, test.info());
//expect(1).toBe(1);
});
});
});
Full Changelog: 2.5.2...2.6.0
2.5.0
2.4.0
Support for new syntax for tag and annotation in playwright v1.42.0
2.1.0
updated monocart-coverage-reports to v2.0.0
2.0.0
(BREAKING CHANGES) integrated monocart-coverage-reports
fixed expected image path