Skip to content

Commit

Permalink
Replacing JS with HTML and CSS (#32)
Browse files Browse the repository at this point in the history
We don't need to be dependent on Javascript for neither accordion nor tabs
  • Loading branch information
erikbra authored Oct 8, 2023
1 parent da9c2c4 commit 2599e9a
Show file tree
Hide file tree
Showing 9 changed files with 445 additions and 296 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace NUnit.ExampleTests.Set1.With_collection;

[TestFixture("Common fixture")]
[TestFixture()]
// ReSharper disable once InconsistentNaming
public class Another_UnitTest_With_Same_Fixture
{
[Test]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace NUnit.ExampleTests.Set1.With_collection;

[TestFixture("Common fixture")]
[TestFixture()]
public class UnitTest_With_Collection
{
[Test]
Expand Down
4 changes: 2 additions & 2 deletions smink/Infrastructure/ReportConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace smink.Infrastructure;

public record ReportConfig
{
public string[] InputFiles { get; set; }
public string OutputFile { get; set; }
public string[] InputFiles { get; set; } = Array.Empty<string>();
public string OutputFile { get; set; } = null!;
public string? Title { get; set; }
}
4 changes: 2 additions & 2 deletions smink/Models/NUnit/TestCase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public record TestCase
public string? Result { get; set; }
public DateTime? StartTime { get; set; }
public DateTime? EndTime { get; set; }
public IEnumerable<Failure> Failures { get; set; }

public IEnumerable<Failure> Failures { get; set; } = Enumerable.Empty<Failure>();
public string? Output { get; set; }

}
2 changes: 1 addition & 1 deletion smink/Models/NUnit/TestRun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public record TestRun
public DateTime? StartTime { get; set; }
public DateTime? EndTime { get; set; }

public IEnumerable<TestSuite> TestSuites { get; set; }
public IEnumerable<TestSuite> TestSuites { get; set; } = Enumerable.Empty<TestSuite>();

}
6 changes: 3 additions & 3 deletions smink/Models/NUnit/TestSuite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public record TestSuite
public string? Result { get; set; }
public DateTime? StartTime { get; set; }
public DateTime? EndTime { get; set; }
public IEnumerable<TestSuite> TestSuites { get; set; }
public IEnumerable<TestCase> TestCases { get; set; }

public IEnumerable<TestSuite> TestSuites { get; set; } = Enumerable.Empty<TestSuite>();
public IEnumerable<TestCase> TestCases { get; set; } = Enumerable.Empty<TestCase>();

}
2 changes: 1 addition & 1 deletion smink/Models/Report/TestSuite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class TestSuite
public string? Id { get; set; }
public string? Name { get; set; }
public string? DisplayName { get; set; }
public string SanitizedName => Common.Sanitize(Name ?? Id.ToString());
public string SanitizedName => Common.Sanitize(Name ?? Id!.ToString());

public string? ConfigFile { get; set; }
public string? Environment { get; set; }
Expand Down
Loading

0 comments on commit 2599e9a

Please sign in to comment.