A highly customizable test library for Lua that allows declarative tests with nested contexts.
Telescope is a test library for Lua that allows developers to write declarative, nested tests with BDD-style syntax. It solves the problem of rigid test structures by providing highly customizable contexts, assertions, and output formatting, making Lua testing more organized and adaptable.
Lua developers who need a flexible, extensible testing framework for unit and integration testing, particularly those working on projects requiring custom assertions or specific test reporting formats.
Developers choose Telescope for its deep customization capabilities, including the ability to create custom assertions, modify test output, and integrate with debugging tools via Lua callbacks, all within a simple, hackable API.
A highly customizable test library for Lua that allows declarative tests with nested contexts.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports nested contexts with before/after hooks, allowing clean hierarchical structures as shown in the example with multiple context levels.
Provides `make_assertion` function to easily define custom assertions with descriptive error messages, enhancing test clarity and flexibility.
Built-in support for Luacov generates code coverage reports without additional setup, streamlining testing workflows.
The `tsc` runner allows Lua snippet callbacks for debugging, profiling, and custom reporting, offering deep integration and customization options.
Last update was in 2012, which may mean lack of recent features, bug fixes, or compatibility with newer Lua versions beyond 5.2.
Requires users to create custom assertions for advanced checks, unlike frameworks with extensive pre-built matchers, adding initial setup overhead.
The high customization level, such as writing custom reporters or using callbacks, can be overkill for straightforward testing needs.