AccelerationNet / lisp-unit2

A Test Framework for Common Lisp in the style of JUnit, designed and implemented with simplicity of use in mind.
MIT License
22 stars 6 forks source link

Feature request: Generic summarizing #19

Open K1D77A opened 1 year ago

K1D77A commented 1 year ago

This is a shot in the dark but would a maintainer be willing to change summarize to be generic? Right now all output is text but certain CI systems like gitlab support xml output to report unit tests. If the summarizing system was generic it would be possible to 'bolt-in' new means of creating summaries, like :text or :html or :xml, these could be defined as independent systems and only the required loaded.

Thanks.

bobbysmith007 commented 1 year ago

I am not opposed to any change that helps these projects be used. That said I haven't worked in lisp in a number of years at this point, so any change I made would probably need to be made with the help of a user who is using it, so we can verify that everything still functions.

I think we were outputting both TAP and plain text. I would assume that xml or html could be generated, then returned as a string which wouldn't require changing any types.

bobbysmith007 commented 1 year ago

If you take a look at https://github.com/AccelerationNet/lisp-unit2/blob/master/test-anything-protocol.lisp that should give you an outline of how to produce the outputs you want when running your tests. Basically create a context around handling the test results, and then write them out in whatever format you need. Since I have not been using it and don't know the specific xml flavor needed to interact with whatever system you are using, I am not sure it makes sense for me to write this code. I am happy to review and merge any PRs that come my way