Skip to content

vosmont/Vera-Plugin-Mock

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED Use instead Unit Test on openLuup

Examples in UnitTests of the plugin RulesEngine

Vera-Plugin-Mock

Mock for local testing outside of Vera and debugging your LUA scripts.

It implements main core functions. See MicasaVerde wiki for more description of the luup functions and variables. http://wiki.micasaverde.com/index.php/Luup_Lua_extensions

Installation

Download and install ZeroBraneStudio (a lightweight IDE for Lua). https://github.com/pkulchenko/ZeroBraneStudio

Configure your project directory and set the Lua interpreter on 'Lua'.

Test your scripts

Put your script in the folder "script" (a skeleton is present in this folder) and run it !

Unit testing

A modified version of 'luaunit' is present in lib folder to test the mock and your scripts for Vera.

It is based on 'rjpcomputing' version. https://github.com/rjpcomputing/luaunit

There's also another newer version (but not used here) : https://github.com/bluebird75/luaunit

See 'test/test_core_vera.lua' for examples.

About

(Deprecated - See unit tests in Vera-Plugin-RulesEngine)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%