eunit_surefire(3erl)
β¨ NAME β¨
okay so bestie, welcome to eunit_surefire(3erl) β the Erlang Module Definition page for eunit_surefire, aka the module thatβs literally giving Surefire reports for EUnit. π
β¨
πΈ DESCRIPTION πΈ
Surefire reports for EUnit β yep, the format used by Maven and Atlassian Bamboo (for example) to integrate test results. Itβs giving βtest results but make it XML.β π
The initial code came from Paul Guyot β credit where itβs due, we love that π«Ά.
Example: generate an XML result file in the current directory, like this:
eunit:test([fib, eunit_examples],
[{report,{eunit_surefire,[{dir,"."}]}}]).
π EXPORTS π
Hereβs the full export lineup, no skips, no merges β every signature stays exactly as it is:
handle_begin(Kind, Data, St) -> term()handle_cancel(X1, Data, St) -> term()handle_end(X1, Data, St) -> term()init(Options) -> term()start() -> term()start(Options) -> term()terminate(X1, St) -> term()
π¦ SEE ALSO π¦
eunitβ go look, bestie, itβs the main character π
π AUTHORS π
MickaΓ«l RΓ©mond <mickael.remond@process-one.net>β iconic π
mwah π β this cutie is from eunit 2.8.2 and itβs the eunit_surefire(3erl) manual. (The footer doesnβt give a date, so Iβm not inventing one, bestie π)
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms