Commit Graph

20 Commits

Author SHA1 Message Date
Ivan Kravets
56ceee220b Fix invalid build status for unit test when remote is used 2019-11-11 22:48:29 +02:00
Ivan Kravets
9c7cc87c5f Move command related modules to "commands" package 2019-10-23 16:05:27 +03:00
Ivan Kravets
b1f190a7f8 Move PIO Unit Testing to the root 2019-09-23 23:44:28 +03:00
Ivan Kravets
7c41c7c2f3 Introduce Black to automate code formatting 2019-09-23 23:13:48 +03:00
Thomas Bleijendaal
123963f760 UTF8 decoding should ignore invalid characters (#3026)
Some boards, like ESP32 based boards, give some unintelligible data when connecting to them via Serial. This is sometimes data that is send with the wrong baud rate (hard baked into the boot loader), or something else. It's hard to prevent this from happening. When a build is uploaded to the ESP board for unit testing, the decoding of the incoming stream should not fail the test due to some garbled content. Since the read data is validated on line 95, any garbage is automatically ignored and only outputted to the console.
2019-09-16 21:02:07 +03:00
Ivan Kravets
c6de3ebea0 Refactor "humanize_duration_time" to "00:00:00.000" format 2019-08-20 16:49:18 +03:00
Simon Arlott
0587f5b964 Add __attribute__((unused)) to generated test code (#2906)
Without this, the compiler will generate unused parameter warnings in
the native version:

test/output_export.cpp: In function ‘void output_start(unsigned int)’:
test/output_export.cpp:6:32: error: unused parameter ‘baudrate’ [-Werror=unused-parameter]
 void output_start(unsigned int baudrate)
                                ^~~~~~~~
cc1plus: all warnings being treated as errors
2019-08-17 21:07:37 +03:00
Ivan Kravets
0677bcecb9 Improve printing of tabulated results 2019-08-17 20:55:16 +03:00
Ivan Kravets
6a90388649 Move FS related helpers to fs.py module 2019-08-12 19:44:37 +03:00
Ivan Kravets
5505c6c0e3 Switch Energia's projects to Arduino framework 2019-07-21 22:31:39 +03:00
Ivan Kravets
33d16bfcf0 Use named context meta vars for unit testing 2019-05-31 15:47:25 +03:00
Ivan Kravets
61db0f1d6a YAPF 0.27.0 2019-05-30 23:42:15 +03:00
Ivan Kravets
d5e277b7cc Minor improvements to unit testing engine 2019-05-30 16:39:17 +03:00
Ivan Kravets
3cc4af1723 Refactor project config options 2019-05-30 16:38:04 +03:00
Ivan Kravets
99377130eb Enhance unit testing summary 2019-05-27 22:25:48 +03:00
Ivan Kravets
3df01405a1 Remove unused Python imports 2019-05-27 22:25:22 +03:00
Ivan Kravets
0b2d780618 Switch to the new ProjectConfig API 2019-05-10 15:45:52 +03:00
Ivan Kravets
d9b0364aa8 Allow overriding a default project "platformio.ini" configuration file 2019-05-10 13:12:41 +03:00
Ivan Kravets
3032cade17 PyLint fixes 2019-04-19 20:46:28 +03:00
Ivan Kravets
948a977fa5 Initial commit of PIO Unit Testing 2019-04-19 20:33:31 +03:00