Skip to content
This repository was archived by the owner on Mar 14, 2026. It is now read-only.
This repository was archived by the owner on Mar 14, 2026. It is now read-only.

Erroring in facts block when not wrapped with @fact #37

Description

@karanveerm

Consider a case like this:

foo() = 1 + "0"
facts("Testing") do
    foo()
    @fact 1 => 1
    @fact 2 => 3
    @fact 3 => 3
    @fact 4 => 4
    @fact 5 => 5
end

This will still throw an error since foo() will throw an error and the remaining lines won't execute. My main use case for FactCheck is that tests keep running even if a single line fails. Would you consider the best way to go about this being to do something like @fact foo() => anything or would it make sense to change the implementation of FactCheck such that if there is an error in the facts block, other facts blocks continue running? Thanks!

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