1.4.1 • Published 5 years ago
cypress-tm4j-reporter v1.4.1
cypress-tm4j-reporter
Install
$ npm install cypress-tm4j-reporter --save-devUsage
Cypress Reporter Plugin
Not recommended for use. See Known Issues.
Example: cypress.json
{
"projectId": "cypress-example",
"reporter": "cypress-tm4j-reporter",
"reporterOptions": {
"baseUrl": "https://api.tm4j.smartbear.com/rest-api/v2",
"authToken": "[READACTED]",
"projectKey": "AQA"
}
}Cypress Module API
Programmatic execution example:
cypress-cli.js
const cypress = require('cypress')
const {Tm4jUtils} = require('cypress-tm4j-reporter')
cypress.run({
spec: './cypress/integration/example.spec.js'
}).then(results => {
let tm4jutils = new Tm4jUtils(results.config.reporterOptions)
tm4jutils.publishCypressCliResults(results).then(testRuns => {
console.log("TM4J results published")
testRuns.forEach(run => {
console.log(run)
})
})
})$ node cypress-cli.jsReporter Options
Following reporter options are available:
baseUrl- base URL for API calls
Example:https://api.tm4j.smartbear.com/rest-api/v2authToken- Auth Token for TM4J for CloudprojectyKey- Jira project key for test cases and test cyclesdefaultTestCaseFolderId- Folder ID for automatically created test casescreateTestCases- create new test case if existing test case key not foundcreateTestCycles- create new test cycle if existing test cycle key not foundspecMapping- define how*.spec.jsfiles mapped to TM4J entitiesv
Example:execution,cyclecycleName- test cycle name forspecMapping=executionenvironmentProperty- populateEnvironmentfor execution with value from property with set name
Example:environment(cypress run --env "environment=envcode")debugOutput- debug output for reporter
Known Issues
- Issue with asynchronous reporters in Cypress:
Mocha reporter exits before async tasks complete #7139
1.4.1
5 years ago
1.2.0
5 years ago
1.1.0
5 years ago
0.0.1-aplha.4
5 years ago
1.4.0
5 years ago
1.3.1
5 years ago
1.3.0
5 years ago
0.0.1-alpha.2
5 years ago
0.0.1-pre1
5 years ago
1.0.0
5 years ago