LTF is a framework for writing functional tests and automations (AT, ATDD, RPA, etc.) using the simple and powerful Lua programming language. It is designed for both developer and QA workflows, providing the tools needed for robust testing of APIs, web frontends, and external hardware.
Leveraging the simplicity of Lua for test scripting and the raw performance of a C-based core engine, LTF is a reliable, modern, and blazingly fast testing framework.
- 💻 Interactive Terminal UI: Real-time, organized view of test execution, including progress, timings, and live log output.
- ✍️ Simple & Expressive Syntax: Define tests with a clear and minimal API (
ltf.test(...)) that gets out of your way. - 📚 Batteries-Included Libraries: Built-in modules for common automation tasks:
- WebDriver: Browser automation for end-to-end testing (
ltf.webdriver). - HTTP Client: Low-level HTTP client for API testing (
ltf.http). - Process Management: Run and interact with external command-line tools (
ltf.proc). - Serial Communication: Test embedded devices and hardware (
ltf.serial). - SSH + SFTP: Remote command execution and file transfer (
ltf.ssh). - JSON Utilities: Fast serialize/deserialize helpers (
ltf.json).
- WebDriver: Browser automation for end-to-end testing (
- 🏷️ Flexible Tagging System: Categorize tests with tags and selectively run suites from the command line.
- 🧹 Guaranteed Teardown: Use
ltf.deferto reliably clean up resources whether a test passes or fails. - 🗂️ Detailed Logging: Human-readable output logs and machine-readable raw JSON logs for every run (ideal for CI, reporting, and tooling).
Important
Please note that this is alpha release.
Most features are still in experimental state, though API and documented behavior will not change.
ltf init my_project
cd my_projectCreate tests/hello_world_test.lua:
local ltf = require("ltf")
ltf.test({
name = "Hello World",
tags = { "smoke" },
body = function()
ltf.log_info("Hello from LTF!")
end,
})ltf testRun only tagged tests:
ltf test --tags smokeMulti-target projects are supported via
ltf init --multitargetandltf test <target_name>.
All documentation lives here.
- Getting Started: Project Setup & Your First Test
- CLI Reference: Command-Line Usage
- Core Libraries: API Reference
- Logging System
- Raw Log JSON Schema
- The Tag System
- Test Variables
- Test Scenarios
- Test Secrets
- Hooks
- Test Teardown with
defer - Test Overriding Behavior
- Test Description
See Build Instructions.
Contributions are welcome — bug reports, feature requests, docs improvements, and PRs.
If you’re not sure where to start, open an issue with:
- what you’re trying to do
- your OS + LTF version (
ltf --version) - a minimal repro (if it’s a bug)
We’d love to hear from you.
