u/xzhan

How can I run some test generation step in gleeunit?

How can I run some test generation step in gleeunit?

Hi folks, I am working on a doc test package for Gleam, and for integration testing purposes I'd like to include a test clean up and generation step before I start executing the tests.

Right now, I am trying to use simplefile to delete the old tests and generate new ones before gleeunit.main(). However, if there are any updates, they won't be included in the current round. They will be included in the next round, but that would be quite confusing... Is it possible in gleeunit to have something like a before hook?

P.S. Self-plug: https://hex.pm/packages/gleedoc It's generally usable, but docs are a bit lacking and there are some issues I'd like to tackle. But yeah, feel free to give it a try.

u/xzhan — 2 days ago