Skip to content

Commit

Permalink
Merge pull request #318 from knocte/add_timestamp_to_describe_func
Browse files Browse the repository at this point in the history
reporters: add timestamp to log in describe() func
  • Loading branch information
lefthandedgoat authored Dec 23, 2016
2 parents 3493d30 + 17088c6 commit a0f0713
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/canopy/reporters.fs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ type ConsoleReporter() =
Console.WriteLine(trace)
Console.ResetColor())

member this.describe d = Console.WriteLine d
member this.describe text =
let now = DateTime.Now.ToString()
Console.WriteLine (sprintf "%s: %s" now text)

member this.contextStart c = Console.WriteLine (String.Format("context: {0}", c))

Expand Down

0 comments on commit a0f0713

Please sign in to comment.