Expecto Test in F # always passes, even if it fails

I am trying to start and run in our test project.

Although it compiles and works fine, I just wanted to make sure that it really works. So I gave him a case of failure, and he passed.

Am I missing something stupid here?

My test setup

let tests =
    testList "Test Group" [
        test "Testing fail test" {
           let result = false
           Expecto.Expect.isTrue result 
        }
    ]

let runTests args =
  runTestsWithArgs defaultConfig args tests

Quit Test

[08:52:06 INF] EXPECTO? Running tests...
[08:52:06 INF] EXPECTO! 1 tests run in 00:00:00.0569286 – 1 passed, 0 ignored, 0 failed, 0 errored. ᕙ໒( ˵ ಠ ╭͜ʖ╮ ಠೃ ˵ )७ᕗ
+4
source share
1 answer

Expecto.Expect , . , Expecto.Expect.isTrue result string -> unit: isTrue. ( IDE, , ). , Expecto.Expect.isTrue result "should fail", , .

+6

Source: https://habr.com/ru/post/1678553/


All Articles