1MicroPython 测试框架:TinyTest 介绍 2 3测试环境 4本机需要安装: 5python3 6pyserial 7 8测试时,通过需要外接板子串口,TinyTest测试时,会在本机 python3 环境执行脚本,同时通过串口将脚本发送到板子进行测试。 9将返回的结果进行对比,如结果相同,则认为测试通过。 10 11该测试用于验证micropython的兼容性以及功能性。 12 13 14脚本测试命令: 15python3 run-tests --target haas100 --device /dev/cu.SLAB_USBtoUART -b 1500000 16 17 18单独测试某脚本命令: 19python3 run-tests --target haas100 --device /dev/cu.SLAB_USBtoUART -b 1500000 tinytest.py 20 21测试某个文件夹: 22python3 run-tests --target haas100 --device /dev/cu.SLAB_USBtoUART -b 1500000 -d thread