Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Lua Test Adapter and Framework

Lua Test Adapter and Framework

Danny Tuppeny

|
2,396 installs
| (1) | Free
Test Adapter and Test Framework for the lua scripting language.

Lua Test Adapter and Framework

Lua Test Adapter and Framework for Visual Studio

Features

  • Automatically discovers test functions that begin with "test_" from .luatests files
  • .luatest files can include other .lua files using require or dofile
  • Automatically update test list when any .lua or .luatest file is updated
  • Automatically executes tests when any .lua or .luatest file is if "Run tests after build" is selected in the Visual Studio Test Explorer
  • Executes testframework_setup and testframework_teardown functions (if found) before/after each test

Installation

  1. Install from Visual Studio Gallery

Usage

  1. Create a .luatest file in any Visual Studio project
  2. Include any additional .lua files using require or dofile
  3. Start any test fuctions with test_ and use assert() or throw errors for failures
  4. Create a testframework_setup or testframework_teardown function if you have code that must be run before/after each test

Known Issues / Limitations

  1. Issue #1 Currently all tests will always be executed, even if you select a subset of tests
  2. Issue #2 Currently all tests must finish executing before results are displayed

Feedback

Please send your feedback/issues/feature requests! :-)

  • GitHub Issues: TestAdapters/issues
  • Twitter: @DanTup
  • Google+: Danny Tuppeny
  • Email: danny+testadapters@tuppeny.com
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft