headlamp 0.1.36 → 0.1.57

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
@@ -1,19 +1,19 @@
1
- ### Headlamp
1
+ # Headlamp
2
2
 
3
3
  Headlamp is a **Rust-powered test UX CLI**: smarter test selection, cleaner output, and a unified workflow across **jest**, **cargo test**, **cargo nextest**, and **pytest**.
4
4
 
5
5
  Headlamp is useful when you want a consistent way to run tests across different projects and keep feedback fast as your repo grows. It can select tests based on what changed, surface failures in a readable format, and keep common defaults (like runner args and coverage settings) in a single config file so your team doesn’t have to remember a long list of flags.
6
6
 
7
- ### Why Headlamp
7
+ ## Why Headlamp
8
8
 
9
9
  - **One CLI, many runners**: `--runner=jest|cargo-nextest|cargo-test|pytest`
10
10
  - **Selection that scales**: run what changed (`--changed`) and what’s related (dependency-graph driven)
11
11
  - **Coverage-first UX**: coverage output you can actually read
12
12
  - **Fast**: Rust core + caching
13
13
 
14
- ### Installation
14
+ ## Installation
15
15
 
16
- #### npm (Node.js projects)
16
+ ### npm (Node.js projects)
17
17
 
18
18
  Requirements:
19
19
 
@@ -31,7 +31,7 @@ Run:
31
31
  npx headlamp --help
32
32
  ```
33
33
 
34
- #### Cargo (Rust projects)
34
+ ### Cargo (Rust projects)
35
35
 
36
36
  Install from crates.io:
37
37
 
@@ -39,9 +39,21 @@ Install from crates.io:
39
39
  cargo install headlamp
40
40
  ```
41
41
 
42
- ### Quickstart
42
+ ### Python (pytest projects)
43
43
 
44
- #### Jest
44
+ Install:
45
+
46
+ ```bash
47
+ pip install headlamp
48
+ ```
49
+
50
+ ```bash
51
+ headlamp --runner=pytest
52
+ ```
53
+
54
+ ## Quickstart
55
+
56
+ ### Jest
45
57
 
46
58
  ```bash
47
59
  npx headlamp --runner=jest
@@ -53,14 +65,14 @@ Forward runner args after `--` (unknown args are forwarded):
53
65
  npx headlamp --runner=jest -- --runInBand
54
66
  ```
55
67
 
56
- #### Cargo nextest / cargo test
68
+ ### Cargo nextest / cargo test
57
69
 
58
70
  ```bash
59
71
  headlamp --runner=cargo-nextest
60
72
  headlamp --runner=cargo-test
61
73
  ```
62
74
 
63
- ### CLI
75
+ ## CLI
64
76
 
65
77
  Run `headlamp --help` to see the up-to-date flags list.
66
78
 
@@ -71,10 +83,11 @@ Highlights:
71
83
  - `lastRelease` selects changes since the previous stable SemVer release tag
72
84
  - **coverage**: `--coverage` plus `--coverage-ui`, `--coverage.detail`, thresholds, etc.
73
85
 
74
- ### Configuration
86
+ ## Configuration
75
87
 
76
88
  Headlamp discovers config from your repo root. Supported file names:
77
89
 
90
+ - `headlamp.toml` (highest precedence)
78
91
  - `headlamp.config.ts`
79
92
  - `headlamp.config.js`
80
93
  - `headlamp.config.mjs`
@@ -86,7 +99,27 @@ Headlamp discovers config from your repo root. Supported file names:
86
99
  - `headlamp.config.yml`
87
100
  - `.headlamprc` plus `.headlamprc.*` variants (`.json`, `.json5`, `.jsonc`, `.yaml`, `.yml`, `.js`, `.cjs`, `.mjs`, `.ts`)
88
101
 
89
- #### Example: `headlamp.config.ts`
102
+ Headlamp also supports embedded TOML config (lower precedence than explicit config files):
103
+
104
+ - `pyproject.toml` under `[tool.headlamp]`
105
+ - `Cargo.toml` under `[package.metadata.headlamp]`
106
+
107
+ ### Example: `headlamp.toml` (recommended for Rust + Python)
108
+
109
+ ```toml
110
+ # Run tests sequentially (useful for very heavy integration tests)
111
+ sequential = true
112
+
113
+ [coverage]
114
+ abort_on_failure = true
115
+ mode = "auto"
116
+ page_fit = true
117
+
118
+ [changed]
119
+ depth = 20
120
+ ```
121
+
122
+ ### Example: `headlamp.config.ts`
90
123
 
91
124
  Rules:
92
125
 
@@ -120,14 +153,14 @@ export default {
120
153
  };
121
154
  ```
122
155
 
123
- ### Contributing
156
+ ## Contributing
124
157
 
125
158
  Pull requests are welcome. For large changes, open an issue first to align on direction.
126
159
 
127
- ### Support
160
+ ## Support
128
161
 
129
162
  - Bug reports and feature requests: GitHub Issues
130
163
 
131
- ### License
164
+ ## License
132
165
 
133
166
  MIT — see `LICENSE`.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "headlamp",
3
- "version": "0.1.36",
3
+ "version": "0.1.57",
4
4
  "description": "The smart searchlight for your test suite. Fast, graph-powered selection for Jest and Cargo.",
5
5
  "keywords": [
6
6
  "testing",