Skip to content

Latest commit

 

History

History
70 lines (44 loc) · 2.35 KB

README.md

File metadata and controls

70 lines (44 loc) · 2.35 KB

Test Runner for Lua Busted

Run Lua Busted test cases in Visual Studio Code

Overview

A lightweight extension to run Lua Busted test cases in Visual Studio Code.

  • Run test cases
  • View test report
  • View tests in Test Explorer

Requirements

  • VS Code (version 1.73.0 or later)
  • Busted

Features

Run/Debug Test Cases

Run Test Cases

  • The extension will generate shortcuts (the green play button) on the left side of the describe / it function calls. To run the target test cases, simply click on the green play button. You can also right click on it to see more options.

Test Explorer

Test Explorer

  • The Test Explorer is the place to show all the test cases in your workspace. You can also run your test cases from here.

View Test Result

View Test Result

  • After running the test cases, the state of the related test items will be updated in both editor decoration and test explorer.
  • You can trigger the command Test: Peek Output to peek the result view.

Settings

Setting Name Description Default Value
busted-test-explorer.executable Name or full path of the busted executable. If only a name is provided, the executable must be in PATH. busted
busted-test-explorer.args Additional busted command line option. []
busted-test-explorer.cwd Working directory used by busted during test runs. ``
busted-test-explorer.env Environement variable appended to the environment when busted is executed. {}
busted-test-explorer.testfilepattern Test file pattern. **/*_spec.lua

VS Code Embedded Settings for Testing

Contributing and Feedback

All contributions and feedback are welcomed. Feel free to submit issue and pull request on the github project.

License

This extension is licensed under MIT License.