+`, summary.TestName, summary.TestName, summary.TotalRuns,
+ summary.FirstRun.Format("2006-01-02"), summary.LastRun.Format("2006-01-02"))
+
+ // Add trend cards
+ for i, trend := range trends {
+ trendClass := "trend-" + trend.Direction
+ htmlContent += fmt.Sprintf(`
+
+
Trend %d - %s
+
Direction: %s
+
Data Points: %d
+
Change: %.2f%%
+
+`, i+1, trend.Period, trendClass, trend.Direction, len(trend.TrendPoints), trend.PercentChange)
+ }
+
+ htmlContent += `
+