Commit Graph

17 Commits

Author SHA1 Message Date
Dawid Nowak f6aa95a4fe test/runners/unity.py: fixed warnings: [-Wunused-parameter] (#4610)
They appear when the tests are run with the `Wextra` flag.

I know of 3 possible solutions:
* A.) `static_cast<void>(unusedParameter);` – the preferred C++ way, but `unity` can also be used with `C`
* B.) `(void) unusedParameter;` – "old" C–style casting – the one I used – compatible with both C and C++
* C.) remove `unusedParameter` var from the function arguments – but keeping the name better explains what it is

```
Library Manager: Installing throwtheswitch/Unity @ ^2.5.2
Unpacking  [####################################]  100%
Library Manager: Unity@2.5.2 has been installed!
.pio/build/native/unity_config/unity_config.c:39:37: warning: unused parameter 'baudrate' [-Wunused-parameter]
void unityOutputStart(unsigned long baudrate) { }
                                    ^
1 warning generated.
Testing...
```
2023-05-01 14:30:27 +03:00
Ivan Kravets 1af508272b Format code with Black 23.1.0 2023-02-02 17:46:03 +02:00
Ivan Kravets de4ba4cbe1 Fixed an issue with an incorrect test summary when a testcase name includes a colon // Resolve #4508 2023-01-14 17:38:26 +02:00
Ivan Kravets 0b4aedbeeb Remove temporary code // Issue #3980 2022-09-03 12:13:55 +03:00
Ivan Kravets 6e16b43568 Automatically upgrade outdated Unity library 2022-07-05 18:57:06 +03:00
Ivan Kravets 32e440bec7 Fixed an issue when testing results were wrong in the verbose mode // Resolve #4336 2022-06-28 12:59:23 +03:00
Ivan Kravets 4a95148cd0 Do not modify existing directory 2022-05-31 20:37:44 +03:00
Ivan Kravets 9b141bf5a8 Control Unit Testing verbosity with a new test_verbosity_level configuration option // Resolve #4276 2022-05-19 21:23:30 +03:00
Ivan Kravets 79b2bfdefe Fix an issue with multiple symbol definitions when framework uses own Unity // Resolve #4259 2022-05-12 15:34:50 +03:00
Ivan Kravets de7d710943 Look for custom "unity_config.h" only in the "test" dir 2022-05-12 14:17:45 +03:00
Ivan Kravets a7654a6098 Move Unity code parts to the Unity runner 2022-05-09 18:58:43 +03:00
Ivan Kravets dae3b9665b Implement TestCase.humanize 2022-05-06 19:56:39 +03:00
Ivan Kravets 0b317ef04b Implement buffering for the testing output 2022-05-05 13:02:27 +03:00
Ivan Kravets 3ed5d41df5 Strip ANSI codes from Unity output 2022-05-04 18:56:57 +03:00
Ivan Kravets 4ef1333abc Refactor test runner mixins to the test output readers 2022-05-03 15:21:53 +03:00
Ivan Kravets b37a74dfd9 Refactor Unit Testing documentation 2022-04-29 20:46:04 +03:00
Ivan Kravets 4151f53e14 Rename unit testing module to "test" 2022-04-26 15:09:51 +03:00