nodemcu-firmware/tools
Gregor Hartmann c4baa9f3b9
Create NodeMCU test system based on gambiarra (#2984)
* Create mispec_file.lua

* Initial commit of gambiarra

* Adapt gambiarra to NodeMCU

* adapt to NodeMCU spacing and add nok functionality

* Some refactoring to make it easier to add new functionality

* Add methode `fail` to check failing code and pass error messages to output

- fail can be called with a function that should fail and a string which should be contained in the errormessage.
- Pass failed check reasons to output.

* Create gambiarra_file.lua

* Add reporting of tests that failed with Lua error

* ok, nok and fail will terminate the running test

* Add capability to run sync and async tests in mixed order and have a task.post inbetween them

* fix gambiarra self test to also run on device (not only host)

Use less ram in checking tests directly after they ran.
Use nateie task.post to tame watchdog.

* Update file tests + add async tmr tests

* Another fix in executing async test

* Catch errors in callbacks using node.setonerror

* change interface to return an object with several test methods

* Update README.md

* Change interface of Gambiarra + add reason for failed eq

* Update gambiarra documentation

* Add coroutine testcases to gambiarra

* Delete mispec_file.lua as it is superseeded by gambiarra_file.lua

* improve regexp for stack frame extraction

* Use Lua 53 debug capabilities

* move actual tests upfront

* remove debug code + optimization

* Show errors immediately instead of at the end of the test, freeing memory earlier

* Split tests to be run in 2 tranches

* rename to NTest and move to new location

* Add tests to checking mechanisms

* Add luacheck to tests

* Some pushing around of files

* more (last) fixes and file juggling

* Minor tweaks and forgotten checkin

* Add NTest selftest to travis

* Trying how to master travis

* another try

* restrict NTest selftest to linux
2020-11-08 14:31:11 +00:00
..
spiffsimg Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
travis Create NodeMCU test system based on gambiarra (#2984) 2020-11-08 14:31:11 +00:00
.gitattributes merge mqtt branch to master and build pre_build bin 2015-01-23 11:48:05 +08:00
.gitignore Adds support for verifying the certificate offered by an SSL server. 2016-03-09 21:51:23 -05:00
Makefile tools/Makefile: remove stray whitespace from APP_DIR (#3240) 2020-08-08 13:30:44 +02:00
luacheck_NTest_config.lua Create NodeMCU test system based on gambiarra (#2984) 2020-11-08 14:31:11 +00:00
luacheck_config.lua Create NodeMCU test system based on gambiarra (#2984) 2020-11-08 14:31:11 +00:00
luacheck_config_helper.lua Polish Lua examples (#2846) 2020-06-09 22:26:52 +02:00
make_cert.py trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
make_server_cert.py trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
makefile.sh trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
nodemcu-partition.py Don't allocate flash to SPIFFS that is reserved by the system. (#3260) 2020-09-01 22:40:57 +01:00
update_buildinfo.sh Add support for using doubles in the LUA53 build. (#3225) 2020-11-07 22:38:40 +01:00
update_spiffs.sh Upgrade to latest SPIFFS and add building of file systems (#1226) 2016-06-05 23:10:58 +02:00
xxd.exe source file first commit, folder structure refact 2014-12-22 19:35:05 +08:00