2023-04-23 03:28:04 +02:00
|
|
|
# busted-tl
|
|
|
|
|
2023-04-23 04:17:53 +02:00
|
|
|
Add Teal capabilities to Busted 🧙
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
First busted-tl needs to be installed. The most easy way to install is to use Luarocks:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
luarocks install busted-tl
|
|
|
|
```
|
|
|
|
|
|
|
|
(Note: `busted-tl` depends on `busted`, so it will automatically be installed by Luarocks if it is missing)
|
|
|
|
|
|
|
|
Now, when running `busted` to allow the Teal loaders it must be specified with the `--loaders` flag:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
busted --loaders=teal
|
|
|
|
```
|
|
|
|
|
|
|
|
When managing a project with Luarocks, it's easy to configure `busted-tl`:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
test_dependencies = {
|
|
|
|
"busted-tl",
|
|
|
|
}
|
|
|
|
|
|
|
|
test = {
|
|
|
|
type = "busted",
|
|
|
|
flags = {
|
|
|
|
"--loaders=teal",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
```
|