{"repo":"lunarmodules/busted","free":true,"listed":false,"github":"https://github.com/lunarmodules/busted","clone":"git clone https://github.com/lunarmodules/busted.git","description":"Elegant Lua unit testing.","language":"Lua","stars":1628,"topics":["lua","testing"],"license":"MIT","category":"dev-tools","readme_excerpt":"busted ====== busted is a unit testing framework with a focus on being easy to use . Supports Lua = 5.1, luajit = 2.0.0, and moonscript. Check out the official docs for extended info. busted test specs read naturally without being too verbose. You can even chain asserts and negations, such as assert.is not.equal . Nest blocks of tests with contextual descriptions using describe , and add tags to blocks so you can run arbitrary groups of tests. An extensible assert library allows you to extend and craft your own assert functions specific to your case with method chaining. A modular output library lets you add on your own output format, along with the default pretty and plain terminal output, JSON with and without streaming, and TAP-compatible output that allows you to run busted specs within most CI servers. Contributing ------------ See CONTRIBUTING.md. All issues, suggestions, and most importantly pull requests are welcome. Testing ------- Assuming you have luarocks installed: Install these dependencies for core testing: Then to reinstall and run tests: Docker ------ Alternatively Busted can be run as a standalone docker container. This approach is somewhat limited because many projects will require extra dependencies which will need to be installed inside the Docker container. Luarocks is provided in the container so many dependencies can be added. The images are based on Alpine Linux so you can also use apk add to install system dependencies if needed. The Docker use case ","default_branch":null,"files":null,"tree":[],"storefront":"/r/lunarmodules","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lunarmodules/busted/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}