Skip to content

is, is-false, etc. as pass-throughs when no current-test? #69

@Zulu-Inuoe

Description

@Zulu-Inuoe

When editing tests, I often find myself wanting to validate things by evaluating partial expressions in Sly, for example:

(let ((v (vector 1 2 3)))
  (= 3 (length v)))

But with 5am, if I have such a thing in a test, it will be like this:

(let ((v (vector 1 2 3)))
  (is (= 3 (length v))))

and now if I try to evaluate the let, I will get
The variable IT.BESE.FIVEAM::CURRENT-TEST is unbound.

This is an open question - would it be reasonable to have the various 5am forms, such as is etc, be essentially progn's when there is no current-test? Maybe it's a problem with my workflow, but I find myself having to temporarily remove them when editing to debug & test my tests

This shouldn't have any effect on existing tests, just make the editing experience a little nicer.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions