File tree Expand file tree Collapse file tree 1 file changed +12
-18
lines changed Expand file tree Collapse file tree 1 file changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -307,24 +307,18 @@ defmodule ExUnit.Case do
307307  An ExUnit test case uses several processes when it runs. These are illustrated below. 
308308
309309  ```mermaid 
310-   flowchart TD 
311-     subgraph setup_alls [setup_all process] 
312-       setup_all(All setup_all callbacks) 
313-     end 
314- 
315-     setup_alls --> tests 
316- 
317-     subgraph tests [Test process] 
318-       setup(setup callbacks) 
319-       test(Test) 
320- 
321-       setup --> test 
322-     end 
323- 
324-     tests --> on_exits 
325- 
326-     subgraph on_exits [on_exit process] 
327-       on_exit(on_exit callbacks, reverse order) 
310+   sequenceDiagram 
311+     participant runner as ExUnit Case 
312+     runner->>runner: Run setup_all callbacks 
313+ 
314+     loop Each test 
315+       create participant test as Test Process 
316+       runner->>test: Spawn 
317+       test->>test: Run setup callbacks 
318+       test->>test: Run test 
319+       destroy test 
320+       test-xrunner: Exits 
321+       runner->>runner: Run on_exit callbacks 
328322    end 
329323  ``` 
330324
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments