Explorar o código

add a failing test to check the build fails

Nick Hildebrant %!s(int64=10) %!d(string=hai) anos
pai
achega
49b376be3c
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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)