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
743fc8e636
Improved support for projects located on Windows network drives // Resolve #3417
2023-04-20 18:57:22 +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
4d4aec4f57
Export test suite directory
2022-12-13 19:36:41 +02:00
Ivan Kravets
0b4aedbeeb
Remove temporary code // Issue #3980
2022-09-03 12:13:55 +03:00
Ivan Kravets
b04c1591c2
Use "get_terminal_size().columns" directly
2022-08-03 20:31:56 +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
Tim Gates
d3b7508bd5
docs: Fix a few typos ( #4340 )
...
There are small typos in:
- platformio/test/helpers.py
- platformio/util.py
- tests/project/test_savedeps.py
Fixes:
- Should read `specified` rather than `sepcified`.
- Should read `overridden` rather than `overriden`.
- Should read `compatibility` rather than `compatiblty`.
2022-07-03 13:16:33 +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
401f8a4891
Added new "pio run --monitor-port" option to specify custom device monitor port to the "monitor" target // Resolve #4337
2022-06-29 22:46:53 +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
12fb02db6e
Use "cli" to the top commands
2022-05-31 17:30:41 +03:00
Ivan Kravets
52f8e98eed
Move "run" command to the root
2022-05-31 17:20:56 +03:00
Ivan Kravets
dcecd5f922
Refactor handling of CLI commands
2022-05-31 17:07:56 +03:00
Ivan Kravets
87dffa36b8
Improved support for user inputs
2022-05-26 22:29:51 +03:00
Ivan Kravets
73dd29c59c
Follow symbolic links during searching for the unit test suites // Resolve #4288
2022-05-26 19:18:21 +03:00
Ivan Kravets
6f6460fd4e
Minor improvements
2022-05-26 19:10:58 +03:00
Ivan Kravets
f7e24f2093
Drop "test_verbosity_level" configuration option // Issue #4276
2022-05-20 10:56:42 +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
b90e89a791
no message
2022-05-15 14:54:07 +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
e6938f8f39
List available project tests with a new "pio test --list-tests" option
2022-05-10 20:21:49 +03:00
Ivan Kravets
8fff7084db
Rename pio test --output-{format} options to --{format}-output
2022-05-10 18:25:26 +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
ee6b498ca9
Optimize unit testing report CLI
2022-05-10 15:25: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
cda7a97e67
Do not automatically generate JSON report
2022-05-09 22:32:16 +03:00