Skip to content

10% of tests in scripts/Tests don't contain an assertion #64

@catb0t

Description

@catb0t

There are 11,000 lines of testing code in scripts/Tests (more than Ruby's parser in C) and I'm not looking to re-write it all right now, but 136 of those 1400 files don't assert anything.

It's not horrible but it does mean that hacking on Sidef could silently break some printed output, that just whizzes by in the whole test output, which is what TDD should prevent.

(the alpha-stage Luciu was designed with this in mind, so a Luciu test case without a call to skip() or the rest of Luciu, is considered Failed+Empty, which causes the enclosing file to be considered Failed too.)

Metadata

Metadata

Assignees

Labels

unit-testsrelated to testing code

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions