@hughescr/stryker-bun-runner 1.0.0-beta1 → 1.0.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 +12 -13
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Stryker test runner plugin for Bun with perTest coverage support.
|
|
4
4
|
|
|
5
|
-
[](https://www.npmjs.com/package/@hughescr/stryker-bun-runner) [](LICENSE.md) [
|
|
9
|
-
> merged. Once this fix is available in mainline Bun, we will release version `1.0.0`.
|
|
10
|
-
> The plugin itself is feature-complete and stable.
|
|
5
|
+
[](https://www.npmjs.com/package/@hughescr/stryker-bun-runner) [](LICENSE.md) [](https://bun.sh) [](https://stryker-mutator.io) [](https://dashboard.stryker-mutator.io/reports/github.com/hughescr/stryker-bun-runner/main) [](https://www.typescriptlang.org)
|
|
11
6
|
|
|
12
7
|
## Features
|
|
13
8
|
|
|
@@ -20,17 +15,21 @@ Stryker test runner plugin for Bun with perTest coverage support.
|
|
|
20
15
|
|
|
21
16
|
### Bun Version
|
|
22
17
|
|
|
23
|
-
This plugin
|
|
18
|
+
This plugin requires **Bun 1.3.7 or later** for full functionality. Bun 1.3.7 includes the TestReporter WebSocket events (from [PR #25986](https://github.com/oven-sh/bun/pull/25986)) that enable proper test-to-mutant correlation.
|
|
19
|
+
|
|
20
|
+
**Important:** Bun versions prior to 1.3.7 will NOT work with this plugin due to missing TestReporter events.
|
|
24
21
|
|
|
25
|
-
**To install
|
|
22
|
+
**To install Bun 1.3.7 or later:**
|
|
26
23
|
|
|
27
24
|
```bash
|
|
28
|
-
|
|
25
|
+
bun upgrade
|
|
29
26
|
```
|
|
30
27
|
|
|
31
|
-
|
|
28
|
+
Or install a specific version:
|
|
32
29
|
|
|
33
|
-
|
|
30
|
+
```bash
|
|
31
|
+
curl -fsSL https://bun.sh/install | bash -s "bun-v1.3.7"
|
|
32
|
+
```
|
|
34
33
|
|
|
35
34
|
### Other Requirements
|
|
36
35
|
|
|
@@ -52,7 +51,7 @@ export default {
|
|
|
52
51
|
coverageAnalysis: 'perTest',
|
|
53
52
|
mutate: ['src/**/*.ts'],
|
|
54
53
|
bun: {
|
|
55
|
-
bunPath
|
|
54
|
+
// bunPath defaults to 'bun' - only set if using a custom Bun installation
|
|
56
55
|
inspectorTimeout: 5000, // Inspector connection timeout in ms (default: 5000)
|
|
57
56
|
},
|
|
58
57
|
};
|
|
@@ -83,7 +82,7 @@ This approach provides reliable test-to-mutant correlation, even with multiple t
|
|
|
83
82
|
|
|
84
83
|
```javascript
|
|
85
84
|
bun: {
|
|
86
|
-
bunPath: 'bun
|
|
85
|
+
bunPath: '/path/to/bun', // Custom bun executable (defaults to 'bun')
|
|
87
86
|
timeout: 30000, // 30 second test timeout
|
|
88
87
|
inspectorTimeout: 10000, // 10 second connection timeout
|
|
89
88
|
env: { DEBUG: 'true' }, // Extra environment variables
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hughescr/stryker-bun-runner",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Stryker test runner plugin for Bun with perTest coverage support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stryker",
|
|
@@ -61,6 +61,6 @@
|
|
|
61
61
|
"@stryker-mutator/core": "^9.0.0"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
|
-
"bun": "
|
|
64
|
+
"bun": ">=1.3.7"
|
|
65
65
|
}
|
|
66
66
|
}
|