Skip to content

Tests that fail because they throw error don't report with a ❌ #72

Open
@didibus

Description

@didibus

When a test fails because it throws, it seems that it's reported differently:

(rcf/tests
 (throw (ex-info "" {}))
 := 10)

Will report:

ERROR in () (:)
expected: (hyperfiddle.rcf/= (throw (ex-info "" {})) 10)
  actual: clojure.lang.ExceptionInfo: 
{}
 at ...

Where-as:

(rcf/tests
 20
 := 10)

Will report:

❌ FAIL in () (...:460)
expected: (= 20 10)
  actual: (not (= 20 10))

I don't mind that it says ERROR instead of FAIL, but it be nice to still have a big red ❌

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions