-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
area: reportersinvolving a specific reporterinvolving a specific reportertype: featureenhancement proposalenhancement proposal
Description
Describe the solution you'd like
I'd like to use test report for other applications (e.g. Slack)
So, JSON file is useful.
package.json
:
{
"scripts": {
"test": "mocha ./test/*-test.js --reporter json --reporter-options output=report.json",
"posttest": "node slack.js"
}
}
slack.js
:
const readJSONFile = require('./readJSONFile')
const createMessage = require('./createMessage')
const postMessage = require('./postMessage')
const report = await readJSONFile('report.json')
const message = createMessage(report)
await postMessage(message)
Describe alternatives you've considered
BrandiATMuhkuh and nelsonthedev
Metadata
Metadata
Assignees
Labels
area: reportersinvolving a specific reporterinvolving a specific reportertype: featureenhancement proposalenhancement proposal