소스 검색

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)