build-busted

Runs busted unit testing for Lua projects

xpol

366

1

0.1.3

MIT

GitHub

This package provides the following services:

build-busted

Adds busted targets for atom-build.

How It Works

This package add busted targets for atom-build if .busted (see busted: Predefined Busted Tasks) exists in project root directory.

Here is minimal .busted file if you just want to run busted:

return {}

Limitation: Currently this package can only parse .busted which return a table constructor expression. That is the follow .busted will parsed:

return {
  ...
}

and this will not parsed (you only got default busted target):

local t =  {
  mytask = {...}
}
return t

Setup

  1. Install busted and add a .busted file for your project.
  2. Install atom-build and this atom-build-busted package apm install build build-busted.
  3. Preferences... -> Packages -> build-busted -> Settings -> Set executable Path to your busted executable.

Contribute

Ideas, bugs and pull requests please go to GitHub xpol/atom-build-busted.