testx-ictu-reporter
Advanced tools
Comparing version 0.1.0 to 0.2.0
{ | ||
"name": "testx-ictu-reporter", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "A reporter for exporting test results to ICTU test results repository.", | ||
@@ -8,3 +8,6 @@ "main": "index.coffee", | ||
"coffee-errors": "^0.8.6", | ||
"form-data": "^0.2.0" | ||
"form-data": "^0.2.0", | ||
"jasmine-reporters": "^1.0.1", | ||
"jasmine-spec-reporter": "~0.6.0", | ||
"protractor-html-screenshot-reporter": "0.0.17" | ||
}, | ||
@@ -11,0 +14,0 @@ "devDependencies": { |
@@ -7,5 +7,23 @@ testx-ictu-reporter | ||
## Usage | ||
# To add Jasmine reports to your test run | ||
``` | ||
report = require 'testx-ictu-reporter' | ||
report 'http://path.to.trr.service', 'path/to/testresults.xml', | ||
reporter = require 'testx-ictu-reporter' | ||
reporter.addJasmineReporters | ||
junit: # set to false to omit this reporter | ||
dir: 'results/junit' # defaults to 'testresults/junit' | ||
filePrefix: 'junit-' # defaults to 'junit' | ||
html: # set to false to omit this reporter | ||
dir: 'testresults/html' # defaults to 'testresults/html' | ||
spec: # set to false to omit this reporter | ||
displayStacktrace: false # defaults to false | ||
``` | ||
You can have all reports installed with their default values if you omit the corresponding options attribute. This means that if you just invoke *addJasmineReporters* without an argument all reporters will be added with their default values. | ||
# To send results to your test results collection service | ||
``` | ||
reporter = require 'testx-ictu-reporter' | ||
reporter.sendResults 'http://path.to.trr.service', 'path/to/testresults.xml', | ||
appName: '[APP_NAME]' | ||
@@ -12,0 +30,0 @@ appVersion: '[APP_VERSION]' |
Sorry, the diff of this file is not supported yet
3583
36
5
+ Addedjasmine-reporters@^1.0.1
+ Addedjasmine-spec-reporter@~0.6.0
+ Addedcolors@0.6.2(transitive)
+ Addedjasmine-reporters@1.1.0(transitive)
+ Addedjasmine-spec-reporter@0.6.0(transitive)
+ Addedmkdirp@0.3.5(transitive)
+ Addedprotractor-html-screenshot-reporter@0.0.17(transitive)
+ Addedunderscore@1.6.0(transitive)