allure-mocha 2.0.0-beta.23 → 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.
- package/README.md +22 -0
- package/package.json +4 -5
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.
|
|
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>",
|
|
@@ -30,14 +30,13 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@testdeck/mocha": "0.1.2",
|
|
32
32
|
"@types/chai": "^4.2.11",
|
|
33
|
-
"@types/glob": "^
|
|
33
|
+
"@types/glob": "^8.0.0",
|
|
34
34
|
"@types/mocha": "^9.0.0",
|
|
35
35
|
"@types/node": "^16.7.8",
|
|
36
36
|
"chai": "^4.2.0",
|
|
37
37
|
"codecov": "^3.6.5",
|
|
38
|
-
"dotenv": "^10.0.0",
|
|
39
38
|
"fs-jetpack": "^4.1.0",
|
|
40
|
-
"glob": "^
|
|
39
|
+
"glob": "^8.0.0",
|
|
41
40
|
"mocha": "^9.1.3",
|
|
42
41
|
"mocha-multi-reporters": "^1.5.1",
|
|
43
42
|
"nyc": "^15.0.1",
|
|
@@ -47,7 +46,7 @@
|
|
|
47
46
|
"typescript": "^4.4.2"
|
|
48
47
|
},
|
|
49
48
|
"dependencies": {
|
|
50
|
-
"allure-js-commons": "2.0.0-beta.
|
|
49
|
+
"allure-js-commons": "2.0.0-beta.25"
|
|
51
50
|
},
|
|
52
51
|
"peerDependencies": {
|
|
53
52
|
"mocha": ">=6.2.x"
|