testit-adapter-cucumber 3.3.1 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/formatter.js +1 -2
- package/dist/formatter.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ npm install testit-adapter-cucumber
|
|
|
20
20
|
| ID of configuration in TMS instance [How to getting configuration ID?](https://github.com/testit-tms/.github/tree/main/configuration#configurationid) | configurationId | TMS_CONFIGURATION_ID |
|
|
21
21
|
| ID of the created test run in TMS instance.<br/>It's necessary for **adapterMode** 0 or 1 | testRunId | TMS_TEST_RUN_ID |
|
|
22
22
|
| Parameter for specifying the name of test run in TMS instance (**It's optional**). If it is not provided, it is created automatically | testRunName | TMS_TEST_RUN_NAME |
|
|
23
|
-
| Adapter mode. Default value - 0. The adapter supports following modes:<br/>0 - in this mode, the adapter filters tests by test run ID and configuration ID, and sends the results to the test run<br/>1 - in this mode, the adapter sends all results to the test run without filtering<br/>2 - in this mode, the adapter creates a new test run and sends results to the new test run | adapterMode | TMS_ADAPTER_MODE |
|
|
23
|
+
| Adapter mode. Default value - 0. The adapter supports following modes:<br/>0 - in this mode, the adapter filters tests by test run ID and configuration ID, and sends the results to the test run<br/>1 - in this mode, the adapter sends all results to the test run without filtering or [with filtering CLI](#run-with-filter)<br/>2 - in this mode, the adapter creates a new test run and sends results to the new test run | adapterMode | TMS_ADAPTER_MODE |
|
|
24
24
|
| It enables/disables certificate validation (**It's optional**). Default value - true | certValidation | TMS_CERT_VALIDATION |
|
|
25
25
|
| Mode of automatic creation test cases (**It's optional**). Default value - false. The adapter supports following modes:<br/>true - in this mode, the adapter will create a test case linked to the created autotest (not to the updated autotest)<br/>false - in this mode, the adapter will not create a test case | automaticCreationTestCases | TMS_AUTOMATIC_CREATION_TEST_CASES |
|
|
26
26
|
| Mode of automatic updation links to test cases (**It's optional**). Default value - false. The adapter supports following modes:<br/>true - in this mode, the adapter will update links to test cases<br/>false - in this mode, the adapter will not update link to test cases | automaticUpdationLinksToTestCases | TMS_AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES |
|
package/dist/formatter.js
CHANGED
|
@@ -26,8 +26,7 @@ class TestItFormatter extends cucumber_1.Formatter {
|
|
|
26
26
|
return this.onGherkinDocument(envelope.gherkinDocument);
|
|
27
27
|
}
|
|
28
28
|
if (envelope.pickle) {
|
|
29
|
-
const
|
|
30
|
-
const resolvedAutotests = testsInRun === null || testsInRun === void 0 ? void 0 : testsInRun.map((test) => { var _a; return (_a = test.autoTest) === null || _a === void 0 ? void 0 : _a.externalId; }).filter((id) => id !== undefined);
|
|
29
|
+
const resolvedAutotests = yield this.strategy.testsInRun;
|
|
31
30
|
if (resolvedAutotests !== undefined) {
|
|
32
31
|
const tags = (0, utils_1.parseTags)(envelope.pickle.tags);
|
|
33
32
|
for (const externalId of resolvedAutotests) {
|
package/dist/formatter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatter.js","sourceRoot":"","sources":["../src/formatter.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,yDAA+G;AAC/G,iDAAkE;AAalE,uCAAoC;AACpC,mCAAoC;AAEpC,MAAqB,eAAgB,SAAQ,oBAAS;IAQpD,YAAY,OAA0B;QACpC,KAAK,CAAC,OAAO,CAAC,CAAC;QAHT,qBAAgB,GAAoB,EAAE,CAAC;QAI7C,MAAM,MAAM,GAAG,IAAI,kCAAc,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAkC,CAAC,CAAC;QACxF,IAAI,CAAC,QAAQ,GAAG,mCAAe,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC/C,IAAI,CAAC,SAAS,GAAG,IAAI,6BAAS,CAAC,MAAM,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,EAAE,CAAC;QAE7B,OAAO,CAAC,gBAAgB,CAAC,EAAE,CAAC,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AAG,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,WAAW,CAAC;aACvD,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;YACZ,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC;QACtD,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;YACb,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;QACpE,CAAC,CAAC,CAAC;QAEL,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;CACF;AApJD,kCAoJC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testit-adapter-cucumber",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Cucumber adapter for Test IT",
|
|
5
5
|
"main": "dist/formatter.js",
|
|
6
6
|
"scripts": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@cucumber/cucumber": "^7.3.1",
|
|
25
25
|
"@cucumber/messages": "^17.1.1",
|
|
26
|
-
"testit-js-commons": "3.
|
|
26
|
+
"testit-js-commons": "3.4.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/preset-env": "^7.15.8",
|