Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eskerda/busted-jsonl
A JSON Lines output handler for Busted
https://github.com/eskerda/busted-jsonl
Last synced: 23 days ago
JSON representation
A JSON Lines output handler for Busted
- Host: GitHub
- URL: https://github.com/eskerda/busted-jsonl
- Owner: eskerda
- License: mit
- Created: 2020-08-31T13:59:18.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-02T11:55:48.000Z (about 4 years ago)
- Last Synced: 2024-10-04T21:38:48.677Z (about 1 month ago)
- Language: Lua
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# busted-jsonl
This is an alternative output handler for
[Busted](https://github.com/Olivine-Labs/busted), a unit testing framework for
Lua.It is based on the `json` output handler that is bundled with Busted.
It prints a JSON element per test instead of per suite, aka
[JSON Lines](http://jsonlines.org/). Useful for:* parsing busted output by stream
* running long suites on systems that timeout non verbose jobs after some
minutes, like Travis CI.
* analyzing busted output with any tool that supports JSON Lines (VisiData).## Installing
```bash
luarocks install busted-jsonl
```## Using
```bash
busted -o jsonl
```or add a file `.busted` to your project root containing
```busted
return {
default = {
output = "jsonl"
},
}
```## Example
```
busted -o jsonl | jq
busted -o jsonl | vd -f jsonl
```## License
This is based off the code of `json` from Busted, and like Busted, it is MIT-licensed.