FredHutch / VISCtemplates

Tools for writing reproducible reports at VISC
Other
6 stars 2 forks source link

Tweak test order #192

Closed slager closed 1 month ago

slager commented 1 month ago

The test knitting function sets custom test contexts, so the subdirectory tests that came after were getting labeled under the last knit test (8 total for test nab docx, when there were only 6). This PR re-orders that test file and adds a note to keep the knit tests last.

Old:

ℹ Testing VISCtemplates
✔ | F W  S  OK | Context
✔ |          6 | knit generic report pdf [4.7s]                                         
✔ |          6 | knit generic report docx [3.0s]                                        
✔ |          6 | knit empty report pdf [3.2s]                                           
✔ |          6 | knit empty report docx [2.7s]                                          
✔ |          6 | knit bama report pdf [5.8s]                                            
✔ |          6 | knit bama report docx [4.1s]                                           
✔ |          6 | knit nab report pdf [6.6s]                                             
✔ |          8 | knit nab report docx [4.8s]                                            
✔ |         10 | visc_load_pdata [7.8s]                                                 

New:

ℹ Testing VISCtemplates
✔ | F W  S  OK | Context
✔ |          2 | use_visc_report                                                        
✔ |          6 | knit generic report pdf [7.2s]                                         
✔ |          6 | knit generic report docx [3.9s]                                        
✔ |          6 | knit empty report pdf [4.9s]                                           
✔ |          6 | knit empty report docx [10.5s]                                         
✔ |          6 | knit bama report pdf [9.1s]                                            
✔ |          6 | knit bama report docx [4.5s]                                           
✔ |          6 | knit nab report pdf [10.8s]                                            
✔ |          6 | knit nab report docx [5.6s]                                            
✔ |         10 | visc_load_pdata [7.7s]