Skip to content

Commit 3a5ba1f

Browse files
Sharding feature (#67)
* added shard feature
1 parent 9f33d69 commit 3a5ba1f

File tree

6 files changed

+199
-181
lines changed

6 files changed

+199
-181
lines changed

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v3
1515
- uses: actions/setup-node@v3
1616
with:
17-
node-version: 16
17+
node-version: 18
1818
registry-url: https://registry.npmjs.org/
1919
- run: npm ci
2020
- run: npm run build

CHANGELOG.MD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.28.0
2+
- added shard parameter
3+
14
## 0.27.0
25
- removed built-in computed in favor of using $js()
36
- made init hook named

README.MD

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ it will override $url memory value
2828
Services is an entities that can execute logic before and after whole test run.
2929

3030
```javascript
31-
module.exports = {
32-
default: {
33-
service: [{
34-
after(result) {
35-
if (!result.success) process.exit(1);
36-
}
37-
}]
38-
}
31+
module.exports = {
32+
default: {
33+
service: [{
34+
after(result) {
35+
if (!result.success) process.exit(1);
36+
}
37+
}]
3938
}
39+
}
4040
```
4141

4242
### Pass CLI params to workers
@@ -52,3 +52,12 @@ Override('I do test', async function() {
5252
console.log('I am overridden')
5353
});
5454
```
55+
56+
### Test Sharding
57+
qavajs provides ability to shard your tests between different machines. To do so pass `--shard x/y` parameter in CLI,
58+
where x - current shard, y - total number of shards.
59+
60+
```
61+
npx qavajs run --config config.js --shard 1/2
62+
npx qavajs run --config config.js --shard 2/2
63+
```

0 commit comments

Comments
 (0)