allure-mocha 2.0.0-beta.24 → 2.0.0-beta.25

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 +22 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -48,6 +48,28 @@ it("is a test", () => {
48
48
  });
49
49
  ```
50
50
 
51
+ ### Parameters usage
52
+
53
+ ```ts
54
+ import { allure } from "allure-mocha/runtime";
55
+
56
+ it("is a test", () => {
57
+ allure.parameter("parameterName", "parameterValue");
58
+ });
59
+ ```
60
+
61
+ Also addParameter takes an third optional parameter with the hidden and excluded options:
62
+ `hidden: true` - hides parameter from the report
63
+ `excluded: true` - excludes parameter from the history
64
+
65
+ ```ts
66
+ import { allure } from "allure-mocha/runtime";
67
+
68
+ it("is a test", () => {
69
+ allure.parameter("parameterName", "parameterValue", { hidden: true, excluded: true });
70
+ });
71
+ ```
72
+
51
73
  ## Decorators Support
52
74
 
53
75
  To make tests more readable and avoid explicit API calls, you can use a special extension - [ts-test-decorators](https://github.com/sskorol/ts-test-decorators).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allure-mocha",
3
- "version": "2.0.0-beta.24",
3
+ "version": "2.0.0-beta.25",
4
4
  "description": "Allure Mocha integration",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Sergey Korol <serhii.s.korol@gmail.com>",
@@ -46,7 +46,7 @@
46
46
  "typescript": "^4.4.2"
47
47
  },
48
48
  "dependencies": {
49
- "allure-js-commons": "2.0.0-beta.24"
49
+ "allure-js-commons": "2.0.0-beta.25"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "mocha": ">=6.2.x"