Skip to content

Commit

Permalink
UI: move test count to header (#1034)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcz authored Apr 19, 2023
1 parent fd7018d commit b02213b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/Echidna/UI/Widgets.hs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ campaignStatus uiState = do
pure $ joinBorders $ borderWithLabel echidnaTitle $
summaryWidget uiState chainId
<=>
hBorderWithLabel (withAttr (attrName "subtitle") $ str " Tests ")
hBorderWithLabel (withAttr (attrName "subtitle") $ str $
(" Tests (" <> show (length uiState.campaign.tests)) <> ") ")
<=>
inner
<=>
Expand Down Expand Up @@ -127,11 +128,9 @@ summaryWidget uiState chainId =
leftSide =
let c = uiState.campaign in
padLeft (Pad 1) $
(timeElapsedWidget uiState) <+> fill ' '
timeElapsedWidget uiState
<=>
str ("Tests found: " <> show (length c.tests))
<=>
str ("Seed: " <> show c.genDict.defSeed)
str ("Seed: " <> show c.genDict.defSeed) <+> fill ' '
middle =
let c = uiState.campaign in
padLeft (Pad 1) $
Expand Down

0 comments on commit b02213b

Please sign in to comment.