Reset of gen_servers for testing
|
|
7 سال پیش | |
|---|---|---|
| config | 7 سال پیش | |
| lib | 7 سال پیش | |
| test | 7 سال پیش | |
| .formatter.exs | 7 سال پیش | |
| .gitignore | 7 سال پیش | |
| README.md | 7 سال پیش | |
| mix.exs | 7 سال پیش |
Bored of resetting GenServers manually during testing? I was, so I built this.
Add gen_reset to your dependencies. Then add use GenReset after your use GenServer line.
A tracking server is automatically started that allows you to reset all servers at the same time: GenServer.Tracker.reset() - you can put this into your setup block.
def deps do
[
{:gen_reset, git: "https://git.chaos.koeln/tim/gen_reset.git"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/gen_reset.