aprs.me/build/packages/gleeunit
Graham McIntire 00a8f996f4
Add Gleam language integration to Elixir project
- Rename Gleam module from encoding_simple to encoding
- Move Gleam files from src/aprs/ to src/aprsme/ to match project namespace
- Create custom Mix task for Gleam compilation (lib/mix/tasks/gleam_compile.ex)
- Update EncodingUtils to wrap Gleam implementation instead of pure Elixir
- Add Gleam dependencies to mix.exs and configure build paths
- Update Mix aliases to include Gleam compilation in test and compile tasks
- Add Gleam support to GitHub Actions CI workflow with caching
- Add GLEAM_INTEGRATION.md documentation
- All 357 tests passing with Gleam integration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-18 13:58:21 -05:00
..
include Add Gleam language integration to Elixir project 2025-07-18 13:58:21 -05:00
src Add Gleam language integration to Elixir project 2025-07-18 13:58:21 -05:00
gleam.toml Add Gleam language integration to Elixir project 2025-07-18 13:58:21 -05:00
LICENCE Add Gleam language integration to Elixir project 2025-07-18 13:58:21 -05:00
README.md Add Gleam language integration to Elixir project 2025-07-18 13:58:21 -05:00

gleeunit

A simple test runner for Gleam, using EUnit on Erlang and a custom runner on JS.

Package Version Hex Docs

gleam add gleeunit@1 --dev
// In test/yourapp_test.gleam
import gleeunit

pub fn main() {
  gleeunit.main()
}

Now any public function with a name ending in _test in the test directory will be found and run as a test.

pub fn some_function_test() {
  assert some_function() == "Hello!"
}

Run the tests by entering gleam test in the command line.

Deno

If using the Deno JavaScript runtime, you will need to add the following to your gleam.toml.

[javascript.deno]
allow_read = [
  "gleam.toml",
  "test",
  "build",
]