Add Teal capabilities to Busted 🧙
Go to file
Aire-One 93b1612a0d chore: gitignore `.rock` packages 2023-04-23 04:18:37 +02:00
.vscode initial 2023-04-23 04:11:03 +02:00
spec initial 2023-04-23 04:11:03 +02:00
src/busted-tl initial 2023-04-23 04:11:03 +02:00
types initial 2023-04-23 04:11:03 +02:00
.editorconfig initial 2023-04-23 04:11:03 +02:00
.gitignore chore: gitignore `.rock` packages 2023-04-23 04:18:37 +02:00
.luacheckrc initial 2023-04-23 04:11:03 +02:00
LICENSE chore: update LICENSE 2023-04-23 04:11:03 +02:00
README.md chore: update README 2023-04-23 04:17:53 +02:00
busted-tl-dev-1.rockspec chore: update dev rockspec 2023-04-23 04:11:03 +02:00
stylua.toml initial 2023-04-23 04:11:03 +02:00
tlconfig.lua initial 2023-04-23 04:11:03 +02:00

README.md

busted-tl

Add Teal capabilities to Busted 🧙

Usage

First busted-tl needs to be installed. The most easy way to install is to use Luarocks:

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:

busted --loaders=teal

When managing a project with Luarocks, it's easy to configure busted-tl:

test_dependencies = {
   "busted-tl",
}

test = {
   type = "busted",
   flags = {
      "--loaders=teal",
   },
}