testit-adapter-codecept 2.1.4 → 2.1.6
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 +6 -9
- package/build/bootstrap.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ npm install testit-adapter-codecept
|
|
|
24
24
|
| It enables/disables certificate validation (**It's optional**). Default value - true | certValidation | TMS_CERT_VALIDATION | tmsCertValidation |
|
|
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 | tmsAutomaticCreationTestCases |
|
|
26
26
|
|
|
27
|
-
Add TestITHelper and TestITPlugin to Codecept file configuration
|
|
27
|
+
Add TestITHelper and TestITPlugin to Codecept file configuration
|
|
28
28
|
|
|
29
29
|
```ts
|
|
30
30
|
export const config: CodeceptJS.MainConfig = {
|
|
@@ -70,7 +70,7 @@ declare namespace CodeceptJS {
|
|
|
70
70
|
|
|
71
71
|
#### File
|
|
72
72
|
|
|
73
|
-
Create .env config or file config with default name
|
|
73
|
+
Create .env config or file config with default name tms.config.json in the root directory of the project
|
|
74
74
|
|
|
75
75
|
```json
|
|
76
76
|
{
|
|
@@ -90,21 +90,19 @@ To create and complete TestRun you can use the Test IT CLI:
|
|
|
90
90
|
|
|
91
91
|
```
|
|
92
92
|
$ export TMS_TOKEN=<YOUR_TOKEN>
|
|
93
|
-
$ testit
|
|
94
|
-
--mode create
|
|
93
|
+
$ testit testrun create
|
|
95
94
|
--url https://tms.testit.software \
|
|
96
95
|
--project-id 5236eb3f-7c05-46f9-a609-dc0278896464 \
|
|
97
96
|
--testrun-name "New test run" \
|
|
98
97
|
--output tmp/output.txt
|
|
99
98
|
|
|
100
|
-
$ export TMS_TEST_RUN_ID=$(cat output.txt)
|
|
99
|
+
$ export TMS_TEST_RUN_ID=$(cat tmp/output.txt)
|
|
101
100
|
|
|
102
101
|
$ npx codeceptjs run
|
|
103
102
|
|
|
104
|
-
$ testit
|
|
105
|
-
--mode finish
|
|
103
|
+
$ testit testrun complete
|
|
106
104
|
--url https://tms.testit.software \
|
|
107
|
-
--testrun-id $(cat tmp/output.txt)
|
|
105
|
+
--testrun-id $(cat tmp/output.txt)
|
|
108
106
|
```
|
|
109
107
|
|
|
110
108
|
### Methods
|
|
@@ -194,4 +192,3 @@ You can help to develop the project. Any contributions are **greatly appreciated
|
|
|
194
192
|
# License
|
|
195
193
|
|
|
196
194
|
Distributed under the Apache-2.0 License. See [LICENSE](https://github.com/testit-tms/adapters-js/blob/master/LICENSE.md) for more information.
|
|
197
|
-
|
package/build/bootstrap.js
CHANGED
|
@@ -26,7 +26,7 @@ module.exports = async function (options) {
|
|
|
26
26
|
await strategy.transferRunsToSystem(suite);
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
|
-
codeceptjs_1.event.dispatcher.on(codeceptjs_1.event.
|
|
29
|
+
codeceptjs_1.event.dispatcher.on(codeceptjs_1.event.workers.after, async () => {
|
|
30
30
|
await strategy.teardown();
|
|
31
31
|
});
|
|
32
32
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testit-adapter-codecept",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"description": "Codecept adapter for Test IT",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"watch": "tsc -p tsconfig.json -w"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"testit-js-commons": "~2.1.
|
|
18
|
+
"testit-js-commons": "~2.1.6"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@codeceptjs/configure": "^0.10.0",
|