<commit_before>﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>Bddify Test Result @DateTime.Now.ToShortDateString()</title>
		
		<style type="text/css">
			#main
			{
				margin:auto;
				width:80%;
				background-color:#a0a0e0;
			}
			
			body
			{
				background-color:#606060;
			}
			
			#header
			{
				padding:10px;
				height:60px;
				background-color:#555555;
				color:White;
			}
			
			#summaryBox
			{
				padding:10px;
			}
			
			#testResult
			{
				margin:10px;
			}
			
			table
			{
				width:100%;
				padding:5px;
				border-collapse:collapse;
			}
			
			tbody
			{
				text-align:left
			}
			
			td.Passed
			{
				background-color:Green
			}
			
			td.Failed
			{
				background-color:Red
			}
			
			td.Inconclusive
			{
				background-color:Yellow
			}
			
			td.NotImplemented
			{
				background-color:Yellow
			}
			
			td.NotExecuted
			{
				background-color:Gray
			}
			
			tr.scenario
			{
				cursor:pointer;
			}
			
			tr.hasException
			{
				cursor:pointer;
			}
			
			th.scenarioHeader
			{
				width:400px    
			}

			th.resultHeader
			{
				width:100px;
			}
			
			th.summaryResult
			{
				width:100px;    
			}
			
			th.summaryCount
			{
				width:100px;    
			}

			td.duration
			{
				width:100px;
			}
			
			td.indentation
			{
				width:30px;
			}
			
			td.result
			{
			    width:150px;
			}
			
			table#summaryTable
			{
				width:250px;
				border-collapse:collapse;
			}
			
			table#summaryTable td
			{
				text-align:left;
			}
		</style>

		<script type="text/javascript" src="jquery-1.4.4.min.js"> </script>
	</head>

	<body>
		<div id="main">
			<div id="header">
				<h2>Bddify Test Result @DateTime.Now.ToShortDateString()</h2>
			</div>

			<div id="summaryBox">
				<p>Summary:</p>

				<table id="summaryTable">
					<thead>
						<tr>
							<td class="summaryResult"></td>
							<td class="summaryCount"></td>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td>Passed</td>
							<td>@Model.Count(b => b.Result == Bddify.Core.StepExecutionResult.Passed)</td>
						</tr>
						<tr>
							<td>Failed</td>
							<td>@Model.Count(b => b.Result == Bddify.Core.StepExecutionResult.Failed)</td>
						</tr>
						<tr>
							<td>Inconclusive</td>
							<td>@Model.Count(b => b.Result == Bddify.Core.StepExecutionResult.Inconclusive)</td>
						</tr>
						<tr>
							<td>Not Implemented</td>
							<td>@Model.Count(b => b.Result == Bddify.Core.StepExecutionResult.NotImplemented)</td>
						</tr>
						<tr>
							<td>Not Executed</td>
							<td>@Model.Count(b => b.Result == Bddify.Core.StepExecutionResult.NotExecuted)</td>
						</tr>
					</tbody>
				</table>
			</div>

			<div id="testResult">
				<table>
					<tbody>
						@foreach (var assembly in Model.GroupBy(b => b.Object.GetType().Assembly.CodeBase)) {
							<tr class="assembly">
								<td colspan="4"><strong>Assembly: </strong>@assembly.Key</td>
							</tr>
							foreach (var group in assembly.GroupBy(b => b.Object.GetType().Namespace)){
								<tr class="namespace">
									<td colspan="4"><strong>Class: </strong>@group.Key</td>
								</tr>

								foreach (var bddee in group) {
									<tr class="scenario" id="@bddee.Id">
										<td class="duration @bddee.Result">@bddee.Duration.Milliseconds (ms)</td>
										<td colspan="2" class="@bddee.Result">@bddee.ScenarioSentence</td>
										<td class="result @bddee.Result">@bddee.Result</td>
									</tr>
									foreach (var step in bddee.Steps) {
                                        string stepClass = "step";
                                        string result = step.ReadableMethodName;
                                        if(step.Exception != null){
                                            stepClass += " hasException";
                                            
                                            if(!string.IsNullOrEmpty(step.Exception.Message)){
                                                result += " (" + step.Exception.Message + ")";
                                            }
                                        }
                                        stepClass += " " + bddee.Id;

									    <tr class="@stepClass" id="@step.Id">
										    <td class="duration"></td>
										    <td colspan="2" class="@step.Result">@result</td>
										    <td class="result @step.Result">@step.Result</td>
									    </tr>

                                        if (step.Exception != null){
									        <tr class="step exceptionDetails @step.Id">
										        <td class="duration"></td>
										        <td class="indentation"></td>
										        <td colspan="2" class="@step.Result">@step.Exception.StackTrace</td>
									        </tr>
                                        }
									}

									<!-- empty row to separate scenarios -->
									<tr class="step @bddee.Id" style="height:5px">
										<td colspan="3"></td>
									</tr>
								}
							}<commit_msg>Removed the step result from test result table and added the colors to the summary table<commit_after>﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>Bddify Test Result @DateTime.Now.ToShortDateString()</title>
		
		<style type="text/css">
			#main
			{
				margin:auto;
				width:80%;
				background-color:#a0a0e0;
			}
			
			body
			{
				background-color:#606060;
			}
			
			#header
			{
				padding:10px;
				height:60px;
				background-color:#555555;
				color:White;
			}
			
			#summaryBox
			{
				padding:10px;
			}
			
			#testResult
			{
				margin:10px;
			}
			
			table
			{
				width:100%;
				padding:5px;
				border-collapse:collapse;
			}
			
			tbody
			{
				text-align:left
			}
			
			td.Passed
			{
				background-color:Green
			}
			
			td.Failed
			{
				background-color:Red
			}
			
			td.Inconclusive
			{
				background-color:Yellow
			}
			
			td.NotImplemented
			{
				background-color:Orange
			}
			
			td.NotExecuted
			{
				background-color:Gray
			}
			
			tr.scenario
			{
				cursor:pointer;
			}
			
			tr.hasException
			{
				cursor:pointer;
			}
			
			th.scenarioHeader
			{
				width:400px    
			}

			th.resultHeader
			{
				width:100px;
			}
			
			th.summaryResult
			{
				width:100px;    
			}
			
			th.summaryCount
			{
				width:100px;    
			}

			td.duration
			{
				width:100px;
			}
			
			td.indentation
			{
				width:30px;
			}
			
			td.result
			{
			    width:150px;
			}
			
			table#summaryTable
			{
				width:250px;
				border-collapse:collapse;
			}
			
			table#summaryTable td
			{
				text-align:left;
			}
		</style>

		<script type="text/javascript" src="jquery-1.4.4.min.js"> </script>
	</head>

	<body>
		<div id="main">
			<div id="header">
				<h2>Bddify Test Result @DateTime.Now.ToShortDateString()</h2>
			</div>

			<div id="summaryBox">
				<p>Summary:</p>

				<table id="summaryTable">
					<thead>
						<tr>
							<td class="summaryResult"></td>
							<td class="summaryCount"></td>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td class="Passed">Passed</td>
							<td class="Passed">@Model.Count(b => b.Result == Bddify.Core.StepExecutionResult.Passed)</td>
						</tr>
						<tr>
							<td class="Failed">Failed</td>
							<td class="Failed">@Model.Count(b => b.Result == Bddify.Core.StepExecutionResult.Failed)</td>
						</tr>
						<tr>
							<td class="Inconclusive">Inconclusive</td>
							<td class="Inconclusive">@Model.Count(b => b.Result == Bddify.Core.StepExecutionResult.Inconclusive)</td>
						</tr>
						<tr>
							<td class="NotImplemented">Not Implemented</td>
							<td class="NotImplemented">@Model.Count(b => b.Result == Bddify.Core.StepExecutionResult.NotImplemented)</td>
						</tr>
						<tr>
							<td class="NotExecuted">Not Executed</td>
							<td class="NotExecuted">@Model.Count(b => b.Result == Bddify.Core.StepExecutionResult.NotExecuted)</td>
						</tr>
					</tbody>
				</table>
			</div>

			<div id="testResult">
				<table>
					<tbody>
						@foreach (var assembly in Model.GroupBy(b => b.Object.GetType().Assembly.CodeBase)) {
							<tr class="assembly">
								<td colspan="3"><strong>Assembly: </strong>@assembly.Key</td>
							</tr>
							foreach (var group in assembly.GroupBy(b => b.Object.GetType().Namespace)){
								<tr class="namespace">
									<td colspan="3"><strong>Class: </strong>@group.Key</td>
								</tr>

								foreach (var bddee in group) {
									<tr class="scenario" id="@bddee.Id">
										<td class="duration @bddee.Result">@bddee.Duration.Milliseconds (ms)</td>
										<td colspan="2" class="@bddee.Result">@bddee.ScenarioSentence</td>
									</tr>
									foreach (var step in bddee.Steps) {
                                        string stepClass = "step";
                                        string result = step.ReadableMethodName;
                                        if(step.Exception != null){
                                            stepClass += " hasException";
                                            
                                            if(!string.IsNullOrEmpty(step.Exception.Message)){
                                                result += " (" + step.Exception.Message + ")";
                                            }
                                        }
                                        stepClass += " " + bddee.Id;

									    <tr class="@stepClass" id="@step.Id">
										    <td class="duration"></td>
										    <td colspan="2" class="@step.Result">@result</td>
									    </tr>

                                        if (step.Exception != null){
									        <tr class="step exceptionDetails @step.Id">
										        <td class="duration"></td>
										        <td class="indentation"></td>
										        <td class="@step.Result">@step.Exception.StackTrace</td>
									        </tr>
                                        }
									}

									<!-- empty row to separate scenarios -->
									<tr class="step @bddee.Id" style="height:5px">
										<td colspan="3"></td>
									</tr>
								}
							}
{'fraction_non_alphanumeric': 0.1452200452889633, 'fraction_numerical': 0.013094417643004824, 'mean_word_length': 1.5439519158527424, 'pattern_counts': {'":': 0, '<': 211, '<?xml version=': 0, '>': 225, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 34, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6181431', 'n_tokens_mistral': 4728, 'n_tokens_neox': 3144, 'n_words': 500}