Skip to content

nondeterministic incorrect counting of tests #62

@pushcx

Description

@pushcx

I created a new test with a single assert Module to confirm a module was correctly loaded.

To my surprise, I saw Passed: 3. I re-ran the script and saw Passed: 1. I ran it a few times in a row, with no file edits in between:

pushcx@tweed ~/code/hotcake:main % $ be qt test/hotcake_optimist.test.rb                                                                                            
██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ 100% 
                                                                                                                                                                    
Passed: 1 | Failed: 0 | Errors: 0                                                                                                                                   
1s pushcx@tweed ~/code/hotcake:main % $ be qt test/hotcake_optimist.test.rb                                                                                         
██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ 100% 
                                                                                                                                                                    
Passed: 3 | Failed: 0 | Errors: 0                                                                                                                                   
1s pushcx@tweed ~/code/hotcake:main % $ be qt test/hotcake_optimist.test.rb                                                                                         
██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ 100% 
                                                                                                                                                                    
Passed: 1 | Failed: 0 | Errors: 0

So there's some kind of inconsistent overcounting bug.

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