Commit dc535c4
authored
Abort the job on the main thread if the test suite fails (#32)
* feat(suite)!: Stop on fail in Suite.
* feat(tests): More tests
More tests and another suite case have been added to test the different RUN_TESTS options.
* fix(suite): Fixed errors that prevented compiling.
Bugs that prevented compilation have been fixed. ENUM TestRunBehavior names have been changed and relevant documentation has been added.
* feat: Added default behavior un RUN_TESTS
* fix: 🐛 Fixes in conditionals of enum values.
* refactor: Use of default value on RUN_TESTS
* feat(suite): Added output on FreeTest.
An output has been added in the FreeTest in case of error and with behavior "ABORT_ALL_ON_FAIL".
* refactor(suite): Output for freetest.
Se ha movido y modificado el output de error en caso de error en freetest con el modo 'ABORT_ALL_ON_FAIL'. Se ha añadido output de warning en caso de error en freetest con el modo 'HALT_SUITE_ON_FAIL'.
* refactor(suite): 🎨 New function for suite process.
The code in which the suite tests were processed has been moved to its own function.
* refactor: 🚧 Added tests to validate suite logic.
* feat(suite): Throw exception on test error
In case of an error in the tests an exception is thrown. This exception is thrown at different times depending on the error mode used.
* feat: Added output for halted suite
Added output when a test fail on a suite on HALT_SUITE_ON_FAIL mode. Reformat file.
* fix: 🐛 Exit on default mode
Fixed a bug on ABORT_ALL_ON_FAIL mode when a test fails in a suite. Added output.
* refactor: Default on RUN_TESTS()
Using Default value on RUN_TESTS(). Added comments.
* chore: Added .clang-format
* refactor: Substitution of exception by exit(1)
The exception is eliminated in favor of exit(1) since error output is already returned.
* docs: Docs for TestResults.
* docs: Docs for checkForTestErrors.
* docs: Documentation for test functions.
* docs: 📝 Documentation update to reflect the modes.
The test suite documentation has been updated, adding information on test execution modes. Updated the example of use with more tests, to be able to see more clearly how the modes work in the result images.
* chore: 🔥 An obsolete image is deleted.
The old example image of the output of the previous example code in the README is removed, as it does not reflect the actual code written and the modes are not reflected.
* docs: 📝 Removed excess code in example
* docs: 📝 Information on modes is added.
Due to an oversight this information had not been added in one of the previous commits.
* docs: 📝 Added test suite reference.1 parent cd19bcf commit dc535c4
9 files changed
Lines changed: 485 additions & 157 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 52 | | |
62 | 53 | | |
63 | 54 | | |
| |||
Binary file not shown.
Loading
Loading
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
68 | 83 | | |
69 | 84 | | |
70 | 85 | | |
| |||
76 | 91 | | |
77 | 92 | | |
78 | 93 | | |
79 | | - | |
| 94 | + | |
80 | 95 | | |
81 | 96 | | |
82 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
83 | 117 | | |
84 | 118 | | |
| 119 | + | |
85 | 120 | | |
86 | 121 | | |
87 | 122 | | |
88 | 123 | | |
| 124 | + | |
89 | 125 | | |
| 126 | + | |
90 | 127 | | |
91 | 128 | | |
92 | 129 | | |
93 | 130 | | |
94 | | - | |
95 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
96 | 139 | | |
97 | 140 | | |
98 | | - | |
99 | | - | |
| 141 | + | |
| 142 | + | |
100 | 143 | | |
101 | 144 | | |
102 | | - | |
| 145 | + | |
| 146 | + | |
103 | 147 | | |
104 | | - | |
| 148 | + | |
105 | 149 | | |
106 | 150 | | |
107 | | - | |
| 151 | + | |
108 | 152 | | |
109 | 153 | | |
110 | 154 | | |
111 | 155 | | |
112 | | - | |
| 156 | + | |
113 | 157 | | |
114 | 158 | | |
115 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
116 | 174 | | |
| 175 | + | |
117 | 176 | | |
118 | 177 | | |
119 | 178 | | |
120 | 179 | | |
121 | 180 | | |
122 | 181 | | |
123 | | - | |
124 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
125 | 192 | | |
126 | 193 | | |
127 | 194 | | |
| |||
0 commit comments