[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Test results as XML files


On Friday 06 February 2015 18:52:16 Stephen Pegoraro wrote:
> On 5 February 2015 at 23:44, Andreas Schneider <asn@xxxxxxxxxxxxxx> wrote:
> > On Wednesday 17 September 2014 11:57:40 Lars Sjöström wrote:
> >> Hi!
> > 
> > Hey,
> > 
> >> That's good news Andreas! Do you have a timeline for cmocka 1.0 ?
> > 
> > hopefully next week. Jakub and I just added support for subunit [1] and
> > junit XML output (stdout and file)!
> > 
> >         -- andreas
> > 
> > [1] https://github.com/testing-cabal/subunit/blob/master/README
> 
> Great to hear guys!

Test Anything Protocol (TAP) [1] message output is supported too now!

asn@krikkit:~/workspace/projects/cmocka/obj> CMOCKA_MESSAGE_OUTPUT=tap 
./tests/test_fixtures 
1..6
ok 1 - malloc_setup_test
ok 2 - malloc_setup_test
ok 3 - malloc_teardown_test
ok 4 - malloc_teardown_test
ok 5 - malloc_teardown_test
ok 6 - malloc_teardown_test
asn@krikkit:~/workspace/projects/cmocka/obj> CMOCKA_MESSAGE_OUTPUT=tap 
./tests/test_assert_macros_fail 
1..1
not ok 1 - test_assert_return_code_fail
# fd < 0, errno(2): No such file or directory
# /home/asn/workspace/projects/cmocka/tests/test_assert_macros_fail.c:22: 
error: Failure!



[1] http://testanything.org/tap-specification.html


References:
Re: Test results as XML filesAndreas Schneider <asn@xxxxxxxxxxxxxx>
Re: Test results as XML filesStephen Pegoraro <spegoraro@xxxxxxxxxx>