Skip to content

Commit 613ebb0

Browse files
committed
refactor to remove attributes
1 parent c75b09b commit 613ebb0

File tree

8 files changed

+1
-331
lines changed

8 files changed

+1
-331
lines changed

ExtentReports/ExtentReports.csproj

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
66
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
77
<ProjectGuid>{783324EC-3D15-46A1-B34E-A1F15B97DD59}</ProjectGuid>
8-
<OutputType>Library</OutputType>
8+
<OutputType>Exe</OutputType>
99
<RootNamespace>AventStack.ExtentReports</RootNamespace>
1010
<AssemblyName>ExtentReports</AssemblyName>
1111
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
@@ -230,17 +230,12 @@
230230
<EmbeddedResource Include="Views\Commons\CommonsAttributes.cshtml" />
231231
<EmbeddedResource Include="Views\Commons\CommonsMedia.cshtml" />
232232
<EmbeddedResource Include="Views\Commons\CommonsRow.cshtml" />
233-
<EmbeddedResource Include="Views\Html\Tag.cshtml" />
234233
<EmbeddedResource Include="Views\Html\Dashboard.cshtml" />
235234
<EmbeddedResource Include="Views\Html\Index.cshtml" />
236235
<EmbeddedResource Include="Views\Html\Partials\Sidenav.cshtml" />
237236
<EmbeddedResource Include="Views\Html\Partials\Log.cshtml" />
238237
<EmbeddedResource Include="Views\Html\Partials\RecurseNodes.cshtml" />
239-
<EmbeddedResource Include="Views\Html\Partials\AttributesView.cshtml" />
240238
<EmbeddedResource Include="Views\Html\Partials\Navbar.cshtml" />
241-
<EmbeddedResource Include="Views\Html\Author.cshtml" />
242-
<EmbeddedResource Include="Views\Html\Device.cshtml" />
243-
<EmbeddedResource Include="Views\Html\Exception.cshtml" />
244239
<EmbeddedResource Include="Views\Html\Partials\Head.cshtml" />
245240
<EmbeddedResource Include="Views\Html\Partials\Scripts.cshtml" />
246241
</ItemGroup>

ExtentReports/Reporter/ExtentHtmlReporter.cs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,6 @@ public override void Flush(ReportAggregates reportAggregates)
3333
File.WriteAllText(Path.Combine(FolderSavePath, "index.html"), source);
3434
source = RazorEngineManager.Instance.Razor.RunCompile("Dashboard", typeof(ExtentHtmlReporter), this);
3535
File.WriteAllText(Path.Combine(FolderSavePath, "dashboard.html"), source);
36-
if (AuthorContext.Context.Count > 0)
37-
{
38-
source = RazorEngineManager.Instance.Razor.RunCompile("Author", typeof(ExtentHtmlReporter), this);
39-
File.WriteAllText(Path.Combine(FolderSavePath, "author.html"), source);
40-
}
41-
if (CategoryContext.Context.Count > 0)
42-
{
43-
source = RazorEngineManager.Instance.Razor.RunCompile("Tag", typeof(ExtentHtmlReporter), this);
44-
File.WriteAllText(Path.Combine(FolderSavePath, "tag.html"), source);
45-
}
46-
if (DeviceContext.Context.Count > 0)
47-
{
48-
source = RazorEngineManager.Instance.Razor.RunCompile("Device", typeof(ExtentHtmlReporter), this);
49-
File.WriteAllText(Path.Combine(FolderSavePath, "device.html"), source);
50-
}
51-
if (ExceptionInfoContext.Context.Count > 0)
52-
{
53-
source = RazorEngineManager.Instance.Razor.RunCompile("Exception", typeof(ExtentHtmlReporter), this);
54-
File.WriteAllText(Path.Combine(FolderSavePath, "exception.html"), source);
55-
}
5636
}
5737

5838
public override void Start()
@@ -65,14 +45,9 @@ private void AddTemplates()
6545
{
6646
string[] templates = new string[]
6747
{
68-
"Author",
6948
"Dashboard",
70-
"Device",
71-
"Exception",
7249
"Index",
73-
"Tag",
7450
"Partials.Attributes",
75-
"Partials.AttributesView",
7651
"Partials.Head",
7752
"Partials.Log",
7853
"Partials.Navbar",

ExtentReports/Views/Html/Author.cshtml

Lines changed: 0 additions & 49 deletions
This file was deleted.

ExtentReports/Views/Html/Device.cshtml

Lines changed: 0 additions & 49 deletions
This file was deleted.

ExtentReports/Views/Html/Exception.cshtml

Lines changed: 0 additions & 49 deletions
This file was deleted.

ExtentReports/Views/Html/Partials/AttributesView.cshtml

Lines changed: 0 additions & 60 deletions
This file was deleted.

ExtentReports/Views/Html/Partials/Sidenav.cshtml

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -9,50 +9,6 @@
99
<span class="title">Tests</span>
1010
</a>
1111
</li>
12-
@if (Model.AuthorContext.Context.Count > 0)
13-
{
14-
<li class="nav-item">
15-
<a href="author.html">
16-
<span class="icon-holder">
17-
<i class="fa fa-user-o"></i>
18-
</span>
19-
<span class="title">Author</span>
20-
</a>
21-
</li>
22-
}
23-
@if (Model.CategoryContext.Context.Count > 0)
24-
{
25-
<li class="nav-item">
26-
<a href="tag.html">
27-
<span class="icon-holder">
28-
<i class="fa fa-tag"></i>
29-
</span>
30-
<span class="title">Tag</span>
31-
</a>
32-
</li>
33-
}
34-
@if (Model.DeviceContext.Context.Count > 0)
35-
{
36-
<li class="nav-item">
37-
<a href="device.html">
38-
<span class="icon-holder">
39-
<i class="fa fa-tablet"></i>
40-
</span>
41-
<span class="title">Device</span>
42-
</a>
43-
</li>
44-
}
45-
@if (Model.ExceptionInfoContext.Context.Count > 0)
46-
{
47-
<li class="nav-item">
48-
<a href="exception.html">
49-
<span class="icon-holder">
50-
<i class="fa fa-bug"></i>
51-
</span>
52-
<span class="title">Exception</span>
53-
</a>
54-
</li>
55-
}
5612
<li class="nav-item">
5713
<a href="dashboard.html">
5814
<span class="icon-holder">

ExtentReports/Views/Html/Tag.cshtml

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)