testing-hashql

Installation
SKILL.md

HashQL Testing Strategies

HashQL uses three testing approaches. compiletest is the default for testing compiler behavior.

Quick Reference

Scenario Test Type Location
Diagnostics/error messages compiletest tests/ui/
Compiler pipeline phases compiletest tests/ui/
MIR/HIR/AST pass integration compiletest tests/ui/
MIR/HIR/AST pass edge cases insta tests/ui/<category>/
MIR pass unit tests MIR builder src/**/tests.rs
Core crate (where needed) insta src/**/snapshots/
Parser fragments (syntax-jexpr) insta src/*/snapshots/
Internal functions/logic Unit tests src/*.rs

compiletest (UI Tests)

Related skills

More from hashintel/hash

Installs
1
Repository
hashintel/hash
GitHub Stars
1.6K
First Seen
1 day ago