Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
add example for busted test
Browse files Browse the repository at this point in the history
  • Loading branch information
rush42 committed Apr 10, 2024
1 parent 88e626c commit 1dd78ac
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions processing/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ do
printf "\033[1m\033[7m Running lua %s \033[0m\n" "$file"
lua "$file"
done
busted /processing/topics/helper/__tests__/busted_demo.lua
23 changes: 23 additions & 0 deletions processing/topics/helper/__tests__/busted_demo.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
describe("a test", function()
describe("nested test1", function()
it("test1", function()
assert.are.same({["a"]= 1}, {a=1})
end)
it("test2", function()
assert.truthy("asd")
end)
end)
describe("nested test2", function()
it("test3", function()
assert.falsy(nil)
end)
it("test4", function()
assert.is_true(1 == 1)
end)
end)
describe("nested test3 ", function()
it("failing test", function()
assert.is_true(1 == 2)
end)
end)
end)

0 comments on commit 1dd78ac

Please sign in to comment.