testcafe-reporter-jira
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
var uploadReport = require('../src/atm'); | ||
var uploadReport = require('./jira'); | ||
@@ -15,7 +15,6 @@ exports['default'] = function () { | ||
this.startTime = startTime; | ||
console.log('START_TIME :: ' + this.startTime); | ||
this.testCount = testCount; | ||
console.log('TEST_COUNT :: ' + this.testCount); | ||
this.userAgents = userAgents; | ||
console.log('USER_AGENT :: ' + this.userAgents); | ||
console.log('Start Time --> ' + this.startTime); | ||
console.log('Browser Agent --> ' + this.userAgents); | ||
}, | ||
@@ -25,2 +24,3 @@ | ||
this.currentFixtureName = name; | ||
console.log('Fixture Name --> ' + this.currentFixtureName); | ||
}, | ||
@@ -36,18 +36,15 @@ | ||
console.log('HAS_ERROR :: ' + hasErr); | ||
console.log('FIXTURE_NAME :: ' + ('' + this.currentFixtureName)); | ||
console.log('TEST ID :: ' + sTestCaseID); | ||
console.log('TEST_NAME :: ' + sTestCaseDescription); | ||
console.log('TestCase Id --> ' + sTestCaseID); | ||
console.log('TestCase Description --> ' + sTestCaseDescription); | ||
if (hasErr) { | ||
testRunInfo.errs.forEach(function (err, idx) { | ||
console.log('ERROR :: ' + _this.formatError(err, idx + 1 + ') ')); | ||
console.log('Test Error --> ' + _this.formatError(err, idx + 1 + ') ')); | ||
uploadReport.updateTestResult(sTestCaseID, 'Fail', _this.formatError(err, idx + 1 + ') ')); | ||
}); | ||
} else uploadReport.updateTestResult(sTestCaseID, 'Pass', 'Test Passed'); | ||
} else uploadReport.updateTestResult(sTestCaseID, 'Pass', 'Test is successful --> ' + sTestCaseDescription); | ||
}, | ||
reportTaskDone: function reportTaskDone(endTime, passed) { | ||
console.log('END_TIME :: ' + endTime); | ||
console.log('TOTAL_PASS :: ' + passed); | ||
console.log('End Time --> ' + endTime); | ||
console.log('Total Pass --> ' + passed); | ||
} | ||
@@ -54,0 +51,0 @@ }; |
{ | ||
"name": "testcafe-reporter-jira", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "jira TestCafe reporter plugin.", | ||
"repository": "https://github.com/testcafeindigo@gmail.com/testcafe-reporter-jira", | ||
"repository": "https://github.com/testcafeindigo/testcafe-reporter-jira", | ||
"author": { | ||
@@ -16,4 +16,3 @@ "name": "Robert Kiel", | ||
"test": "gulp test", | ||
"publish-please": "publish-please", | ||
"prepublish": "publish-please guard" | ||
"publish": "publish" | ||
}, | ||
@@ -23,3 +22,7 @@ "keywords": [ | ||
"reporter", | ||
"plugin" | ||
"plugin", | ||
"jira", | ||
"Kanoah", | ||
"ATM", | ||
"Adaptavist Test Management" | ||
], | ||
@@ -31,2 +34,3 @@ "license": "MIT", | ||
"del": "^1.2.0", | ||
"dotenv": "^5.0.1", | ||
"gulp": "^3.9.0", | ||
@@ -41,6 +45,3 @@ "gulp-babel": "^5.2.1", | ||
"testcafe": "^0.2.0-alpha" | ||
}, | ||
"dependencies": { | ||
"dotenv": "^5.0.1" | ||
} | ||
} |
# testcafe-reporter-jira | ||
[![Build Status](https://travis-ci.org/testcafeindigo@gmail.com/testcafe-reporter-jira.svg)](https://travis-ci.org/testcafeindigo@gmail.com/testcafe-reporter-jira) | ||
[![Build Status](https://travis-ci.org/testcafeindigo/testcafe-reporter-jira.svg)](https://travis-ci.org/testcafeindigo/testcafe-reporter-jira) | ||
@@ -7,3 +7,3 @@ This is the **jira** reporter plugin for [TestCafe](http://devexpress.github.io/testcafe). | ||
<p align="center"> | ||
<img src="https://raw.github.com/testcafeindigo@gmail.com/testcafe-reporter-jira/master/media/preview.png" alt="preview" /> | ||
<img src="https://raw.github.com/testcafeindigo/testcafe-reporter-jira/master/media/preview.png" alt="preview" /> | ||
</p> | ||
@@ -17,2 +17,12 @@ | ||
## Environment Variables: | ||
Set following environment variables on your machine: | ||
``` | ||
JIRA_BASE_URL=baseurl | ||
JIRA_USERNAME=user | ||
JIRA_PASSWORD=password | ||
JIRA_TEST_RUN=runid | ||
``` | ||
## Usage | ||
@@ -38,10 +48,4 @@ | ||
Set environment variable for following: | ||
JIRA_BASE_URL=abc.com | ||
JIRA_USERNAME=xyz | ||
JIRA_PASSWORD=pass | ||
JIRA_TEST_RUN=ABC-R201 | ||
## Author | ||
testcafeindigo | ||
Robert Kiel | ||
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
0
49
7
5866
13
61
- Removeddotenv@^5.0.1
- Removeddotenv@5.0.1(transitive)