julia-vscode / TestItemRunner.jl

Run Julia test items
MIT License
76 stars 11 forks source link

Support passing `verbose` keyword #37

Closed nickrobinson251 closed 1 year ago

nickrobinson251 commented 1 year ago

For example, with @run_package_tests verbose=true

Test Summary:                           | Pass  Total   Time
Package                                 | 5170   5170  15.1s
  test/runtests.jl                      | 5170   5170  15.1s
    InlineString basics                 |  261    261   3.8s
    InlineString operations             | 4114   4114   6.0s
    `string` / `*`                      |   14     14   0.0s
    InlineString parsing                |   79     79   0.6s
    InlineString Serialization symmetry |   20     20   0.8s
    alias tests                         |    8      8   0.0s
    sorting tests                       |   97     97   2.7s
    inlinestrings                       |   19     19   0.9s
    reverse                             |  544    544   0.1s
    macros                              |   10     10   0.0s
    print/show/repr                     |    4      4   0.1s
     Testing InlineStrings tests passed

whereas with plain @run_package_tests (i.e. with default verbose=false)

Test Summary: | Pass  Total   Time
Package       | 5170   5170  15.2s
     Testing InlineStrings tests passed

Related to #36. I thought this might be a nice way to be able to see which TestItems are getting picked up e.g. when running from the REPL.

codecov[bot] commented 1 year ago

Codecov Report

Merging #37 (917daba) into main (ad12fae) will increase coverage by 0.04%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #37      +/-   ##
==========================================
+ Coverage   98.80%   98.85%   +0.04%     
==========================================
  Files           2        2              
  Lines          84       87       +3     
==========================================
+ Hits           83       86       +3     
  Misses          1        1              
Flag Coverage Δ
unittests 98.85% <100.00%> (+0.04%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/TestItemRunner.jl 98.73% <100.00%> (+0.04%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more