duktape-esp32 icon indicating copy to clipboard operation
duktape-esp32 copied to clipboard

how to run tests?

Open boneskull opened this issue 7 years ago • 5 comments

There are two separate dirs full of tests; one in filesystem/tests/ and tests/. I'm not sure how to run them.

boneskull avatar Feb 06 '18 20:02 boneskull

They're associated with the ide you just got working... You can click the load button and you'll see them listed.

dashxdr avatar Feb 11 '18 03:02 dashxdr

this is what happens when I try to flash the tests:

+---------------------+
| Building spiffs.img |
+---------------------+
/net.js
/i2c.js
/ledc.js
/bootwifi.js
/start.js
/stream.js
/neopixels.js
/web/ide.html
/web/test.html
/web/selectAP.html
/web/ide.js
/Partitions.js
/uart_processor.js
/tests/test_serial_write_1.js
/tests/test_nvs_ints.js
/tests/test_neopixel_webserver.js
SPIFFS_write error(-10010): unknown
error adding file!
Error for adding content from tests!

The reason is that the filepath length is too long. So, I have to move the tests dir out of filesystem before flashing. I'm not sure how others managed to do this.

boneskull avatar Feb 11 '18 20:02 boneskull

test_neopixel_webserver.js rename to tst_neopixel_wbsrvr.js would fix it

dashxdr avatar Feb 11 '18 20:02 dashxdr

...that isn't the only filename that's too long. I can certainly shorten the filenames to flash, but I'm mainly curious if others were able to flash as-is.

boneskull avatar Feb 11 '18 22:02 boneskull

I saw the same error, but I didn't pay attention to it since it didn't halt the make process...

dashxdr avatar Feb 12 '18 00:02 dashxdr