Skip to content

Commit

Permalink
Add events into JSON output (#1069)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrieco-tob authored Jun 7, 2023
1 parent 70a1c6c commit b43ecf7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Echidna/Output/JSON.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import Numeric (showHex)
import EVM.Types (keccak')

import Echidna.ABI (ppAbiValue, GenDict(..))
import Echidna.Events (Events)
import Echidna.Types (Gas)
import Echidna.Types.Campaign (WorkerState(..))
import Echidna.Types.Config (Env(..))
Expand Down Expand Up @@ -48,6 +49,7 @@ data Test = Test
, name :: Text
, status :: TestStatus
, _error :: Maybe String
, events :: Events
, testType :: TestType
, transactions :: Maybe [Transaction]
}
Expand All @@ -58,6 +60,7 @@ instance ToJSON Test where
, "name" .= name
, "status" .= status
, "error" .= _error
, "events" .= events
, "type" .= testType
, "transactions" .= transactions
]
Expand Down Expand Up @@ -118,6 +121,7 @@ mapTest test =
, name = "name" -- TODO add a proper name here
, status = status
, _error = err
, events = test.events
, testType = Property
, transactions = transactions
}
Expand Down

0 comments on commit b43ecf7

Please sign in to comment.