Skip to content

Problem with unitt v3: incorrect exit status #213

@glennj

Description

@glennj

I noticed that line-up has the wrong unitt version in the test suite (I'll PR that momentarily).

However I noticed that the unitt executable does not emit a non-zero exit status:

$ ~/.arturo/packages/bin/unitt
Uncaught error in tests/test-line-up.art:
#[
        output: {
                Description: Line Up

                    ✅ - assert that format smallest non-exceptional ordinal numeral 4
                _repr
                this\_condition
                         ✅: true


                ══╡ Name Error ╞════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ <script> ══

                  Cannot resolve requested value

                  Identifier not found:
                      unitt

                  ┃ File: /Users/glennj/.arturo/packages/cache/unitt/2.0.1/src/internal/suite.art
                  ┃ Line: 127
                  ┃

                  Hint: Perhaps you meant... unit? ?
                                       or... units ?
                                       or... _unittsection_ ?


        }
        code: 1
]
$ echo $?
0

We have a false positive pass for this exercise.

Is this configurable in unitt.toml, or is it a bug in unitt?

Metadata

Metadata

Assignees

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