testcafe-reporter-testit 4.0.5 → 4.1.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 CHANGED
@@ -10,6 +10,11 @@ npm install testcafe-reporter-testit
10
10
 
11
11
  ## Configuration
12
12
 
13
+ #### Log level
14
+
15
+ The adapter includes a custom logger; the default level is `warn`. Set another level at runtime with the `LOG_LEVEL` environment variable: `error`, `warn`, `info`, or `debug`.
16
+
17
+
13
18
  | Description | File property | Environment variable |
14
19
  |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------|--------------------------------------------|
15
20
  | Location of the TMS instance | url | TMS_URL |
@@ -22,6 +27,7 @@ npm install testcafe-reporter-testit
22
27
  | It enables/disables certificate validation (**It's optional**). Default value - true | certValidation | TMS_CERT_VALIDATION |
23
28
  | 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 |
24
29
  | 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 |
30
+ | Logger level, default value is `warn`, available values: [`error`, `warn`, `info`, `debug`] | | LOG_LEVEL |
25
31
 
26
32
  ### File
27
33
 
package/lib/converter.js CHANGED
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.stripAscii = exports.Converter = void 0;
7
7
  const utils_1 = __importDefault(require("./utils"));
8
+ const testit_js_commons_1 = require("testit-js-commons");
8
9
  var Status;
9
10
  (function (Status) {
10
11
  Status["PASSED"] = "Passed";
@@ -78,7 +79,7 @@ const getStatusDetails = (testRunInfo) => {
78
79
  testDetails = (0, utils_1.default)(testDetails, `Stacktrace:\n${stacktrace}`);
79
80
  }
80
81
  catch (err) {
81
- console.error(`Error in callsite.renderSync in reporting:\n${err}`);
82
+ testit_js_commons_1.logger.error(`Error in callsite.renderSync in reporting:\n${err}`);
82
83
  }
83
84
  }
84
85
  if (error.userAgent) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testcafe-reporter-testit",
3
- "version": "4.0.5",
3
+ "version": "4.1.0",
4
4
  "description": "TestCafe adapter for Test IT",
5
5
  "keywords": [],
6
6
  "author": {
@@ -43,6 +43,6 @@
43
43
  "testcafe": "^3.0.1"
44
44
  },
45
45
  "dependencies": {
46
- "testit-js-commons": "4.0.5"
46
+ "testit-js-commons": "4.1.0"
47
47
  }
48
48
  }