deadfoxygrandpa / elm-test

A unit testing framework for Elm
MIT License
204 stars 21 forks source link

Tooling friendly output for console runner #34

Open rundis opened 8 years ago

rundis commented 8 years ago

Hi !

I'm about to add initial support for elm-test in my elm-light plugin. I'll most likely add support for running tests through node-elm-test. Anyways it would be great if the output could have an output that was more tooling (and ci) friendly. The obvious choice might be xunit xml (ci friendly), all though I'd prefer json (tooling friendly). The more context information that can be provided in the output, the larger the room for "innovation" for tooling ! (suite, testfile, testfunction, assertion, line/col number, exception/errors).

On a related note, would it be possible to stream the results, rather than waiting for all tests to complete before reporting. Also would that play well with node-elm-test @rtfeldman ?

A few thoughts on what I'd like to achieve (long term):

I guess some synchronization of efforts with elm-check would be great to.

deadfoxygrandpa commented 8 years ago

I had already wanted to add something like xunit output, but you mention json output? Are you thinking of some sort of specific json standard that you can point me toward? The point behind adding xunit would be to make it easier to plug into existing systems.

I also plan to add result streaming, I just haven't got around to it yet.

rundis commented 8 years ago

xunit output would undoubtably be a big win in terms of supporting existing tools.

The reason I mention json (think of it as a additional very nice to have feature!) is;

But no I don't have any json std format to refer to. Just pitching an idea really.