@serenity-js/serenity-bdd
Advanced tools
Comparing version 2.0.8 to 2.1.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.1.0](https://github.com/serenity-js/serenity-js/compare/v2.0.9...v2.1.0) (2020-02-07) | ||
### Features | ||
* **protractor:** browser tags include browser version and platform name ([bc4a038](https://github.com/serenity-js/serenity-js/commit/bc4a038484f75e90e44c5399c43213b472e71f38)), closes [#132](https://github.com/serenity-js/serenity-js/issues/132) | ||
## [2.0.8](https://github.com/serenity-js/serenity-js/compare/v2.0.7...v2.0.8) (2020-02-05) | ||
@@ -8,0 +19,0 @@ |
@@ -76,3 +76,10 @@ "use strict"; | ||
.when(model_1.IssueTag, function (_) { return (report.issues = report.issues || []).push(tag.name); }) | ||
.when(model_1.BrowserTag, function (_) { return (report.context = report.context || tag.name); }) | ||
.when(model_1.BrowserTag, function (browserTag) { | ||
report.context = [report.context, browserTag.browserName].filter(function (part) { return !!part; }).join(','); | ||
report.driver = browserTag.browserName; | ||
}) | ||
.when(model_1.PlatformTag, function (platformTag) { | ||
// todo: this is not supported yet, waiting for https://github.com/serenity-bdd/serenity-core/pull/1860/files | ||
// report.context = [report.context, platformTag.name].filter(part => !! part).join(','); | ||
}) | ||
.when(model_1.ContextTag, function (_) { return (report.context = tag.name); }) | ||
@@ -79,0 +86,0 @@ .else(function (_) { return void 0; }); |
{ | ||
"name": "@serenity-js/serenity-bdd", | ||
"version": "2.0.8", | ||
"version": "2.1.0", | ||
"description": "Serenity BDD reporter for Serenity/JS", | ||
@@ -30,3 +30,3 @@ "author": { | ||
"lint": "tslint --project tsconfig-lint.json --config ../../tslint.json --format stylish", | ||
"test": "nyc --report-dir ../../target/coverage/serenity-bdd mocha --opts ../../mocha.opts 'spec/**/*.spec.*'", | ||
"test": "nyc --report-dir ../../target/coverage/serenity-bdd mocha --config ../../.mocharc.yml 'spec/**/*.spec.*'", | ||
"compile": "tsc --project tsconfig.json", | ||
@@ -47,8 +47,8 @@ "site": "esdoc -c .esdoc.js" | ||
"dependencies": { | ||
"axios": "^0.19.0", | ||
"axios": "^0.19.2", | ||
"chalk": "^3.0.0", | ||
"find-java-home": "^1.0.0", | ||
"find-java-home": "^1.1.0", | ||
"progress": "^2.0.3", | ||
"tiny-types": "^1.12.1", | ||
"which": "^1.3.1", | ||
"tiny-types": "^1.12.2", | ||
"which": "^2.0.2", | ||
"yargs": "^15.1.0" | ||
@@ -63,9 +63,9 @@ }, | ||
"@documentation/esdoc-template": "2.0.7", | ||
"@integration/testing-tools": "2.0.7", | ||
"@serenity-js/assertions": "2.0.7", | ||
"@serenity-js/core": "2.0.7", | ||
"@serenity-js/rest": "2.0.7", | ||
"@types/mocha": "^5.2.6", | ||
"@integration/testing-tools": "2.1.0", | ||
"@serenity-js/assertions": "2.1.0", | ||
"@serenity-js/core": "2.1.0", | ||
"@serenity-js/rest": "2.1.0", | ||
"@types/mocha": "^7.0.1", | ||
"@types/progress": "^2.0.3", | ||
"memfs": "3.0.4" | ||
"memfs": "^3.0.4" | ||
}, | ||
@@ -95,3 +95,3 @@ "nyc": { | ||
}, | ||
"gitHead": "1878455f03de74439b8213839929d18f1c5d5783" | ||
"gitHead": "e310b2e05f530fe0231eeb33cd6e53b1e0f89e8f" | ||
} |
@@ -14,3 +14,3 @@ import { Path } from '@serenity-js/core/lib/io'; | ||
Name, | ||
Outcome, | ||
Outcome, PlatformTag, | ||
RequestAndResponse, | ||
@@ -23,2 +23,3 @@ ScenarioDetails, | ||
} from '@serenity-js/core/lib/model'; | ||
import { platform } from 'os'; | ||
import { JSONObject, match } from 'tiny-types'; | ||
@@ -116,3 +117,10 @@ import { equal } from 'tiny-types/lib/objects'; // tslint:disable-line:no-submodule-imports | ||
.when(IssueTag, _ => (report.issues = report.issues || []).push(tag.name)) | ||
.when(BrowserTag, _ => (report.context = report.context || tag.name)) | ||
.when(BrowserTag, (browserTag: BrowserTag) => { | ||
report.context = [report.context, browserTag.browserName].filter(part => !! part).join(','); | ||
report.driver = browserTag.browserName; | ||
}) | ||
.when(PlatformTag, (platformTag: PlatformTag) => { | ||
// todo: this is not supported yet, waiting for https://github.com/serenity-bdd/serenity-core/pull/1860/files | ||
// report.context = [report.context, platformTag.name].filter(part => !! part).join(','); | ||
}) | ||
.when(ContextTag, _ => (report.context = tag.name)) | ||
@@ -119,0 +127,0 @@ .else(_ => void 0); |
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
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
265925
4446
+ Addedwhich@2.0.2(transitive)
- Removedwhich@1.3.1(transitive)
Updatedaxios@^0.19.2
Updatedfind-java-home@^1.1.0
Updatedtiny-types@^1.12.2
Updatedwhich@^2.0.2