testit-adapter-mocha 2.2.2 → 2.2.4

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.
Files changed (2) hide show
  1. package/README.md +15 -20
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -21,25 +21,17 @@ module.exports = {
21
21
 
22
22
  ## Configuration
23
23
 
24
- | Description | File property | Environment variable |
25
- |------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------|-----------------------------------|
26
- | Location of the TMS instance | url | TMS_URL |
27
- | API secret key <br/>[How to getting API secret key?](https://github.com/testit-tms/.github/tree/main/configuration#privatetoken) | privateToken | TMS_PRIVATE_TOKEN |
28
- | ID of project in TMS instance <br/>[How to getting project ID?](https://github.com/testit-tms/.github/tree/main/configuration#projectid) | projectId | TMS_PROJECT_ID |
29
- | ID of configuration in TMS instance <br/>[How to getting configuration ID?](https://github.com/testit-tms/.github/tree/main/configuration#configurationid) | configurationId | TMS_CONFIGURATION_ID |
30
- | ID of the created test run in TMS instance.<br/>It's necessary for **adapterMode** 0 or 1 | testRunId | TMS_TEST_RUN_ID |
31
- | Parameter for specifying the name of test run in TMS instance (**It's optional**). <br/>If it is not provided, it is created automatically | testRunName | TMS_TEST_RUN_NAME |
32
- | Adapter mode * | adapterMode | TMS_ADAPTER_MODE |
33
- | Mode of automatic creation test cases ** (**It's optional**). | automaticCreationTestCases | TMS_AUTOMATIC_CREATION_TEST_CASES |
34
-
35
- *The adapter supports following modes:
36
- * 0 - in this mode, the adapter filters tests by external id and sends the results to the test run. **Default value**.
37
- * 1 - in this mode, the adapter sends all results to the test run without filtering
38
- * 2 - in this mode, the adapter creates a new test run and sends results to the new test run
39
-
40
- **The adapter supports following modes:
41
- * true - in this mode, the adapter will create a test case linked to the created autotest (not to the updated autotest)
42
- * false - in this mode, the adapter will not create a test case. **Default value**.
24
+ | Description | File property | Environment variable |
25
+ |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------|--------------------------------------------|
26
+ | Location of the TMS instance | url | TMS_URL |
27
+ | API secret key <br/>[How to getting API secret key?](https://github.com/testit-tms/.github/tree/main/configuration#privatetoken) | privateToken | TMS_PRIVATE_TOKEN |
28
+ | ID of project in TMS instance <br/>[How to getting project ID?](https://github.com/testit-tms/.github/tree/main/configuration#projectid) | projectId | TMS_PROJECT_ID |
29
+ | ID of configuration in TMS instance <br/>[How to getting configuration ID?](https://github.com/testit-tms/.github/tree/main/configuration#configurationid) | configurationId | TMS_CONFIGURATION_ID |
30
+ | ID of the created test run in TMS instance.<br/>It's necessary for **adapterMode** 0 or 1 | testRunId | TMS_TEST_RUN_ID |
31
+ | Parameter for specifying the name of test run in TMS instance (**It's optional**). <br/>If it is not provided, it is created automatically | testRunName | TMS_TEST_RUN_NAME |
32
+ | 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 |
33
+ | 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 |
34
+ | 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 |
43
35
 
44
36
  ### File
45
37
 
@@ -54,6 +46,7 @@ module.exports = {
54
46
  "testRunId": "TEST_RUN_ID",
55
47
  "adapterMode": 0,
56
48
  "automaticCreationTestCases": false
49
+ "automaticUpdationLinksToTestCases": false
57
50
  }
58
51
  ```
59
52
 
@@ -69,7 +62,8 @@ module.exports = {
69
62
  configurationId: 'CONFIGURATION_ID',
70
63
  testRunId: 'TEST_RUN_ID',
71
64
  adapterMode: ADAPTER_MODE,
72
- automaticCreationTestCases: AUTOMATIC_CREATION_TEST_CASES
65
+ automaticCreationTestCases: AUTOMATIC_CREATION_TEST_CASES,
66
+ automaticUpdationLinksToTestCases: AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES,
73
67
  },
74
68
  // ... other mocha options
75
69
  };
@@ -87,6 +81,7 @@ TMS_TEST_RUN_NAME=TestRunName; # optional
87
81
  TMS_ADAPTER_MODE=0; # or 1, or 2
88
82
  TMS_CONFIG_FILE=pathToAnotherConfigFile; #optional
89
83
  TMS_AUTOMATIC_CREATION_TEST_CASES=false; # or true, optional
84
+ TMS_AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES=false; # or true, optional
90
85
  ```
91
86
 
92
87
  #### Parallel run
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testit-adapter-mocha",
3
- "version": "2.2.2",
3
+ "version": "2.2.4",
4
4
  "description": "Mocha adapter for Test IT",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/types.d.ts",
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "mocha": "^10.2.0",
29
29
  "deasync-promise": "^1.0.1",
30
- "testit-js-commons": "~2.2.2"
30
+ "testit-js-commons": "~2.2.4"
31
31
  },
32
32
  "files": [
33
33
  "lib"