浏览代码

add a failing test to check the build fails

Nick Hildebrant 10 年之前
父节点
当前提交
49b376be3c
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      test/ci_tests/01_basic/basic_spec.lua

+ 4 - 1
test/ci_tests/01_basic/basic_spec.lua

@@ -2,6 +2,9 @@ require("cURL")
 
 describe("civetweb basic", function()
  it("should serve a simple get request", function()
-   assert.is(true)
+   assert.is_true(true)
+ end)
+ it("should fail the build on a failed test", function()
+   assert.is_false(true)
  end)
 end)