tangled
alpha
login
or
join now
erika.florist
/
maudit
6
fork
atom
Rust library to generate static websites
6
fork
atom
overview
issues
pulls
1
pipelines
fix: allow showing the binary output in dev if needs be
Princesseuh
1 month ago
69517a7c
7fcda418
+16
2 changed files
expand all
collapse all
unified
split
crates
maudit-cli
src
dev
build.rs
e2e
tests
test-utils.ts
+11
crates/maudit-cli/src/dev/build.rs
···
131
131
format_elapsed_time(duration, &FormatElapsedTimeOptions::default_dev());
132
132
133
133
if output.status.success() {
134
134
+
// Optionally log output from the binary (includes incremental build info)
135
135
+
// Enable with MAUDIT_SHOW_BINARY_OUTPUT=1 for debugging
136
136
+
if std::env::var("MAUDIT_SHOW_BINARY_OUTPUT").is_ok() {
137
137
+
let stdout = String::from_utf8_lossy(&output.stdout);
138
138
+
let stderr = String::from_utf8_lossy(&output.stderr);
139
139
+
for line in stdout.lines().chain(stderr.lines()) {
140
140
+
if !line.trim().is_empty() {
141
141
+
info!(name: "build", "{}", line);
142
142
+
}
143
143
+
}
144
144
+
}
134
145
info!(name: "build", "Binary rerun finished {}", formatted_elapsed_time);
135
146
update_status(
136
147
&self.websocket_tx,
+5
e2e/tests/test-utils.ts
···
56
56
const childProcess = spawn(command, args, {
57
57
cwd: fixturePath,
58
58
stdio: ["ignore", "pipe", "pipe"],
59
59
+
env: {
60
60
+
...process.env,
61
61
+
// Show binary output for tests so we can verify incremental build logs
62
62
+
MAUDIT_SHOW_BINARY_OUTPUT: "1",
63
63
+
},
59
64
});
60
65
61
66
// Capture output to detect when server is ready