STASIS
A pipeline delivery generator
Loading...
Searching...
No Matches
junitxml.h
Go to the documentation of this file.
1
2#ifndef STASIS_JUNITXML_H
3#define STASIS_JUNITXML_H
4#include <libxml/xmlreader.h>
5
6#define JUNIT_RESULT_STATE_NONE 0
7#define JUNIT_RESULT_STATE_FAILURE 1
8#define JUNIT_RESULT_STATE_SKIPPED 2
9#define JUNIT_RESULT_STATE_ERROR 3
10
16 char *message;
17};
18
24 char *message;
25};
26
32 char *type;
34 char *message;
35};
36
42 char *classname;
44 char *name;
46 float time;
48 char *message;
53 struct JUNIT_Failure *failure;
54 struct JUNIT_Skipped *skipped;
55 struct JUNIT_Error *error;
57};
58
64 char *name;
66 int errors;
72 int passed;
74 int tests;
76 float time;
78 char *timestamp;
80 char *hostname;
84 size_t _tc_inuse;
86 size_t _tc_alloc;
87};
88
129struct JUNIT_Testsuite *junitxml_testsuite_read(const char *filename);
130
135void junitxml_testsuite_free(struct JUNIT_Testsuite **testsuite);
136
137#endif //STASIS_JUNITXML_H
void junitxml_testsuite_free(struct JUNIT_Testsuite **testsuite)
Definition junitxml.c:44
struct JUNIT_Testsuite * junitxml_testsuite_read(const char *filename)
Definition junitxml.c:312
Definition junitxml.h:22
char * message
Error text.
Definition junitxml.h:24
Definition junitxml.h:14
char * message
Error text.
Definition junitxml.h:16
Definition junitxml.h:30
char * type
Type of skip event.
Definition junitxml.h:32
char * message
Reason text.
Definition junitxml.h:34
Definition junitxml.h:40
char * message
Standard output message.
Definition junitxml.h:48
char * name
Name of test.
Definition junitxml.h:44
int tc_result_state_type
Result type.
Definition junitxml.h:50
char * classname
Class name.
Definition junitxml.h:42
union JUNIT_Testcase::tc_state_ptr result_state
Result data.
float time
Test duration in fractional seconds.
Definition junitxml.h:46
Definition junitxml.h:62
struct JUNIT_Testcase ** testcase
Array of test cases.
Definition junitxml.h:82
char * timestamp
Timestamp.
Definition junitxml.h:78
char * name
Test suite name.
Definition junitxml.h:64
size_t _tc_inuse
Total number of test cases in use.
Definition junitxml.h:84
int errors
Total number of test terminated due to an error.
Definition junitxml.h:66
float time
Total duration in fractional seconds.
Definition junitxml.h:76
size_t _tc_alloc
Total number of test cases allocated.
Definition junitxml.h:86
char * hostname
Test runner host name.
Definition junitxml.h:80
int passed
Total number of successful tests.
Definition junitxml.h:72
int skipped
Total number of skipped tests.
Definition junitxml.h:70
int failures
Total number of failed tests.
Definition junitxml.h:68
int tests
Total number of tests.
Definition junitxml.h:74
Type container for result (there can only be one)
Definition junitxml.h:52