Просмотр исходного кода

add a failing test to check the build fails

Nick Hildebrant 10 лет назад
Родитель
Сommit
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)