Add compiler and server regression tests
Expose the compiler session as a library target, run core as a workspace member, and add direct typeset tests plus end-to-end HTTP tests. Coverage: examples, arXiv fixture, starred headings, rectangles, errors, page-hash cache stability, static frontend assets, project API, preview/PDF, traversal rejection, and the legacy endpoint.
This commit is contained in:
1 parent
ff9717397e
commit
bad477fbee
9 files changed
+501
-3
No files matched your search
@@ -40,6 +40,19 @@ directory is imported as the first project, so the sample document is ready to
|
||||
open. Edits are saved to the file inside the project and recompiled after a
|
||||
short pause.
|
||||
|
||||
## Testing
|
||||
|
||||
```sh
|
||||
cargo test --workspace
|
||||
```
|
||||
|
||||
The suite has two layers. `tests/typeset.rs` drives `CompilerSession` directly
|
||||
and checks the three examples, the arXiv Letter fixture, starred headings, box
|
||||
and rule painting, error reporting, and page-hash cache stability.
|
||||
`tests/server.rs` starts the real `texrra serve` binary on an ephemeral port and
|
||||
checks static frontend assets, font CSS, the project API, preview/PDF responses,
|
||||
path traversal rejection, and the renamed `/texrra` legacy endpoint.
|
||||
|
||||
## Project API
|
||||
|
||||
| Endpoint | Purpose |
|
||||
|
||||
Reference in new issue
Block a user