asolvi_erik

asolvi_erik

ExUnitGWT - Given-When-Then (GWT) syntax for ExUnit

This library provides helpers for writing given-when-then style tests with ExUnit, common in ATDD and BDD.

Documentation here: https://hexdocs.pm/ex_unit_gwt
GitHub page here: https://github.com/svan-jansson/ex_unit_gwt

First Post!

hauleth

hauleth

I thought it will provide some more context to test, but it seems like bunch of passthroughs to regular functions. The same you can achieve with comments in your tests.

Last Post!

asolvi_erik

asolvi_erik

Yes, that is correct, for now. It’s “syntactic sugar”. I agree that it should provide more context in the output. I will try to add a formatter that achieves this. Thanks for the comment!

(I’ve opened an issue: Test output does not provide enough context · Issue #1 · svan-jansson/ex_unit_gwt · GitHub)

Where Next?

Popular in Announcing Top

Hal9000
Here is my first stab at this. README pasted below. https://github.com/Hal9000/elixir_random Comments and critiques are welcome. Thank...
New
Crowdhailer
Experimenting with this code. OK.try do user <- fetch_user(1) cart <- fetch_cart(1) order = checkout(cart, user) save_orde...
New
jakub-zawislak
Hi everyone, I’m coming from the Symfony (PHP) framework. I like Phoenix, but it has a one thing that was build much better in the Symfo...
New
RobertDober
Earmark is a pure-Elixir Markdown converter. It is intended to be used as a library (just call Earmark.as_html), but can also be used as...
239 12978 134
New
ityonemo
Currently just starting out on a new mini-project - getting zig NIFs to run in elixir. https://github.com/ityonemo/zigler The idea here...
New
Qqwy
TypeCheck: Fast and flexible runtime type-checking for your Elixir projects. Core ideas Type- and function specifications are const...
336 14774 100
New
type1fool
WebAuthnLiveComponent WebAuthnComponents See this post about renaming the package. Passwordless authentication for Phoenix LiveView app...
New

Other popular topics Top

vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 49266 226
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New

We're in Beta

About us Mission Statement