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
0d9ee75b05
Resolved an issue where native tests would fail if a custom program name was specified // Resolve #4546
2023-04-15 13:40:53 +03:00
Ivan Kravets
a387f9708a
PyLint fix
2023-03-08 14:47:47 -07: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
7c9e0393f8
Improved device port finder when using dual channel UART converter // Resolve #4367
2022-07-29 19:37:59 +03:00
Ivan Kravets
5844c536a4
Typo fix
2022-07-10 11:50:13 +03:00
Ivan Kravets
4c2aca4956
Show "TimeoutError" only in the verbose mode when can not find a serial port
2022-07-08 15:18:52 +03:00
Ivan Kravets
6e16b43568
Automatically upgrade outdated Unity library
2022-07-05 18:57:06 +03:00
Ivan Kravets
523b6dfa98
Do not immediately terminate a testing program when results are received
2022-07-04 17:32:11 +03:00
Ivan Kravets
029e66cd06
PyLint fixes
2022-07-02 19:19:48 +03:00
Ivan Kravets
b006f53010
PyLint: Fix "useless-object-inheritance"
2022-07-02 19:03:25 +03:00
Ivan Kravets
19d518fc4c
Fix PyLint: Consider explicitly re-raising
2022-07-02 18:37:57 +03:00
Ivan Kravets
3b878747f2
Bump GoogleTest dependency to 1.12.1
2022-07-01 18:03:48 +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
6a3b6f0d44
Bump GoogleTest to ^1.12.0 and Doctest to ^2.4.9
2022-06-26 17:21:09 +03:00
Ivan Kravets
bb6490d6f2
Do not automatically configure any flags for the testing frameworks
2022-06-25 20:11:17 +03:00
Ivan Kravets
743a3e2c02
Improved a serial port finder for a board with predefined HWIDs // Resolve #4308
2022-06-15 12:51:06 +03:00
Ivan Kravets
4b5bc91abb
Merged the Unit Testing “building” stage with “uploading” for the embedded target // Resolve #4307
2022-06-12 12:33:02 +03:00
Ivan Kravets
c42fe32972
Fix typo in upload_protocol
2022-06-10 17:30:36 +03:00
Ivan Kravets
4a95148cd0
Do not modify existing directory
2022-05-31 20:37:44 +03:00
Ivan Kravets
52f8e98eed
Move "run" command to the root
2022-05-31 17:20:56 +03:00
Ivan Kravets
6f6460fd4e
Minor improvements
2022-05-26 19:10:58 +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
7a100fb0b0
Use device finder for automatic detection of upload port
2022-05-15 13:46:44 +03:00
Ivan Kravets
e5e2210768
Improved automatic detection of a testing serial port // Resolve #4076
2022-05-14 23:30:36 +03:00
Ivan Kravets
d22b479bd3
Regroup device command
2022-05-14 18:21:44 +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
e75bf27b5f
Add "-pthread" to the LINKFLAGS
2022-05-10 17:23:03 +03:00
Ivan Kravets
2c99607d3d
Pass "-pthread" flag to GoogleTest only on Unix OS
2022-05-10 16:46:48 +03:00
Ivan Kravets
c09af13b7f
Add "-pthread" flag for GoogleTest
2022-05-10 16:13:30 +03:00
Ivan Kravets
65f2f02d93
Add support for GoogleTest testing and mocking framework // Resolve #3572
2022-05-10 14:30:02 +03:00
Ivan Kravets
960edb5611
Use full testing program path on Windows
2022-05-10 11:59:59 +03:00
Ivan Kravets
a7654a6098
Move Unity code parts to the Unity runner
2022-05-09 18:58:43 +03:00
Ivan Kravets
814679522a
Do not override embedded std flag
2022-05-09 18:49:15 +03:00
Ivan Kravets
4249349c2b
Add hint about verbose output
2022-05-09 18:40:46 +03:00
Ivan Kravets
50eda82e27
Fix test
2022-05-07 14:09:11 +03:00
Ivan Kravets
daa3481862
Pass extra arguments to the testing program with a new "pio test --program-arg" option // Resolve # 3132
2022-05-07 13:31:19 +03:00
Ivan Kravets
2d94000dd5
Rename source.file to source.file name and report project folder
2022-05-07 13:24:27 +03:00
Ivan Kravets
e3eb155d76
Improve doctest results parser
2022-05-07 13:23:03 +03:00
Ivan Kravets
82778473fe
New: "doctest" testing framework // Resolve #4240
2022-05-06 20:00:23 +03:00
Ivan Kravets
dae3b9665b
Implement TestCase.humanize
2022-05-06 19:56:39 +03:00
Ivan Kravets
6d1e637518
Add support for Semihosting and Unit Testing // Resolve #3516
2022-05-05 17:36:15 +03:00
Ivan Kravets
0b317ef04b
Implement buffering for the testing output
2022-05-05 13:02:27 +03:00
Ivan Kravets
c0cfbe2ce0
Using hardware Simulators for Unit Testing // Issue #4238
2022-05-04 23:20:37 +03:00
Ivan Kravets
3ed5d41df5
Strip ANSI codes from Unity output
2022-05-04 18:56:57 +03:00
Ivan Kravets
e81d83b8c2
Added support for a Custom Unity Library // Resolve #3980
2022-05-03 21:47:20 +03:00
Ivan Kravets
1a4419059d
Added support for "socket://" and "rfc2217://" protocols using "test_port" option // Resolve #4229
2022-05-03 18:11:23 +03:00