File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ trait Compare {
99
99
enum Reports {
100
100
Raw ,
101
101
HTMLContext ,
102
+ MarkdownContext ,
102
103
}
103
104
104
105
impl Compare for Reports {
@@ -110,12 +111,13 @@ impl Compare for Reports {
110
111
"downloads.html.context.json" . into( ) ,
111
112
"full.html.context.json" . into( ) ,
112
113
] ,
114
+ Self :: MarkdownContext => vec ! [ "markdown.md.context.json" . into( ) ] ,
113
115
}
114
116
}
115
117
116
118
fn format ( & self , input : Vec < u8 > ) -> Vec < u8 > {
117
119
let parsed_report = match * self {
118
- Self :: HTMLContext => {
120
+ Self :: HTMLContext | Self :: MarkdownContext => {
119
121
if let Value :: Object ( mut map) =
120
122
serde_json:: from_slice ( & input) . expect ( "invalid json report" )
121
123
{
@@ -198,6 +200,7 @@ impl MinicraterRun {
198
200
199
201
failed |= Reports :: Raw . compare ( & ex_dir, report_dir. path ( ) ) ;
200
202
failed |= Reports :: HTMLContext . compare ( & ex_dir, report_dir. path ( ) ) ;
203
+ failed |= Reports :: MarkdownContext . compare ( & ex_dir, report_dir. path ( ) ) ;
201
204
202
205
// Delete the experiment
203
206
Command :: crater ( )
You can’t perform that action at this time.
0 commit comments