TE

Gleam Testing

Testing conventions for Gleam using gleeunit

Details

Language / Topic
gleamGleam
Category
Testing

Rules

balanced
- Use `gleeunit` as the test framework; place all test modules in the `test/` directory with a `_test` suffix.
- Use `gleeunit/should` assertion functions like `should.equal`, `should.be_ok`, and `should.be_error` for readable expectations.
- Name each test function descriptively in `snake_case` ending with `_test` so the test runner discovers them automatically.
- Test pure functions with direct input/output assertions; use `gleam/result` helpers to unwrap results before asserting on inner values.