Skip to content
hishamhmPublic

About

Elegant Lua unit testing.

Resources

Stars

1 star

Watchers

0 watching

Forks

 
 

Latest commit

 

History

43 Commits

Folders and files

Repository files navigation

busted

Awesome unit testing in Lua.

Usage

require("busted")

describe("Busted unit testing framework, function()
  describe("should be awesome", function()
    it("should be easy to use", function()
      assert.truthy("Yup.")
    end)

    it("should have lots of features, function()
      assert_equal({ table = "great"}, { table = "great" })
      assert.not_same({ table = "great"}, { table = "great"})
    end)

    it("should be easy to read", function()
      object_mock = mock(myObject)
      spy_on(object_mock.alert)

      object_mock.alert("Lua")

      assert.called_with("object_mock", "Lua")
    end)
  end)
end)

About

Elegant Lua unit testing.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages