testit-adapter-codecept 2.1.5 → 2.1.7
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 +5 -7
- 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
|
{
|
|
@@ -96,14 +96,13 @@ $ testit testrun create
|
|
|
96
96
|
--testrun-name "New test run" \
|
|
97
97
|
--output tmp/output.txt
|
|
98
98
|
|
|
99
|
-
$ export TMS_TEST_RUN_ID=$(cat tmp/output.txt)
|
|
99
|
+
$ export TMS_TEST_RUN_ID=$(cat tmp/output.txt)
|
|
100
100
|
|
|
101
101
|
$ npx codeceptjs run
|
|
102
102
|
|
|
103
|
-
$ testit
|
|
104
|
-
--mode finish
|
|
103
|
+
$ testit testrun complete
|
|
105
104
|
--url https://tms.testit.software \
|
|
106
|
-
--testrun-id $(cat tmp/output.txt)
|
|
105
|
+
--testrun-id $(cat tmp/output.txt)
|
|
107
106
|
```
|
|
108
107
|
|
|
109
108
|
### Methods
|
|
@@ -193,4 +192,3 @@ You can help to develop the project. Any contributions are **greatly appreciated
|
|
|
193
192
|
# License
|
|
194
193
|
|
|
195
194
|
Distributed under the Apache-2.0 License. See [LICENSE](https://github.com/testit-tms/adapters-js/blob/master/LICENSE.md) for more information.
|
|
196
|
-
|
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.7",
|
|
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",
|