Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any RSpec like tool for Erlang?

Is there something like RSpec describe it framework for Erlang?

like image 255
Alex Craft Avatar asked Nov 07 '12 04:11

Alex Craft


1 Answers

Have you seen espec: https://github.com/lucaspiller/espec? Seems like it can have syntax like

describe("#generate_headers", fun() ->
    it("should generate Host and User-Agent headers", fun() ->
        [
            {"Host", "api.twitter.com"},
            {"User-Agent", "Twerl"}
        ] = stream_client_util:generate_headers()
    end)
end).
like image 152
Benjamin Tan Wei Hao Avatar answered Nov 13 '22 10:11

Benjamin Tan Wei Hao



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!