PoC to detect where a flaky test diverge #2830
                  
                    
                      socketopp
                    
                  
                
                  started this conversation in
                Show and tell
              
            Replies: 1 comment 4 replies
-
| 
         Neat! How do you run the test cases to see which are passing and failing? Are you using  Having had a quick look at   | 
  
Beta Was this translation helpful? Give feedback.
                  
                    4 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Good evening, ava community!
I have written a tool divergent (FIRST DRAFT!!) that run a specific ava test case until it both passes and fails, then I use njstrace (Instrumentation and tracing tool) to analyse the trace of both runs and provide the user with useful information where the test first diverge from a passing and a failing run.
I am not a dedicated ava user, however, I was intrigued to use instrumentation tool along a test framework. However, it was not possible to get traces of njtrace with Mocha or Jest, so I figured I'll try ava. To my astonishment, it worked!
Here is an output of the program.
What do you think? I was wondering if I should make this a npm module or just keep the code in a stand alone repository, or maybe it would be nice to incorporate it in ava? Who knows, let me know what you think.
All input is much obliged!
Kind regards,
socketopp
Beta Was this translation helpful? Give feedback.
All reactions