You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cpp/libclang/integration_test/README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,13 +18,14 @@ This directory contains integration tests for the C++ libclang parser and relate
18
18
## Directory Structure
19
19
20
20
-`cases/`: Each subdirectory is an independent test case, containing C++ sources, BUILD files, and golden `expected.json` outputs.
21
-
-`test_framework.rs`: Rust test framework that invokes the parser and compares output to the golden file.
21
+
-`test_framework.rs`: Rust test framework that invokes the parser and compares the debug JSON sidecar to the golden file.
22
22
-`BUILD`: Bazel build and test rules for integration.
23
23
24
24
## Test Workflow
25
25
26
26
1. Each case directory contains C++ source files, headers, a BUILD file, and an `expected.json` golden output.
27
-
3. The Rust test framework uses the parser to process the case and compares the output to `expected.json`.
27
+
2. The case `cpp_parser(...)` target must set `emit_debug_json = True` so the parser emits the aggregated `debug.json` sidecar required by the test harness.
28
+
3. The Rust test framework reads `debug.json` from the parser output directory and compares it to `expected.json`.
0 commit comments