-
-
Notifications
You must be signed in to change notification settings - Fork 48
Add test coverage to CI #128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
networkfusion
wants to merge
28
commits into
main
Choose a base branch
from
add-test-code-coverage
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 6 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
711156d
Add unit test skeleton
networkfusion 25b52c2
Update build image
networkfusion eef6f8f
Build image concurency.
networkfusion e34bc9a
Add Code Coverage
networkfusion a8b2dff
Correct variable name
networkfusion ebae9fa
Merge branch 'add-unittest-skeleton' into add-test-code-coverage
networkfusion ebaf549
Correct name
networkfusion 1b3c67a
Merge branch 'add-test-code-coverage' of https://github.com/nanoframe…
networkfusion 877643d
Update image version
networkfusion daf229a
Merge branch 'add-unittest-skeleton' into add-test-code-coverage
networkfusion dc1420a
Merge branch 'add-test-code-coverage' of https://github.com/nanoframe…
networkfusion 4e13f85
Fix multiple file warning.
networkfusion 3a443a0
Fix the fix
networkfusion 5233ebf
Continue on test error
networkfusion a4b5885
Fix yaml
networkfusion d4f70bc
Further fix to yaml
networkfusion 16889bd
Use wrap option
networkfusion 062c81a
Fix location of coverage report
networkfusion 6f3c156
Fail on test fail
networkfusion 9afdfbb
Merge branch 'main' into add-test-code-coverage
networkfusion bbd1205
Update CloudsmithApiTests.cs
networkfusion 768efc2
Update FirmwarePackageTests.cs
networkfusion 223a168
Improve CI task name
networkfusion 41ba0a3
Update CloudsmithApiTests.cs
networkfusion 45b9c70
Merge branch 'main' into add-test-code-coverage
networkfusion c886de9
Merge branch 'main' into add-test-code-coverage
networkfusion e116b8f
Merge branch 'main' into add-test-code-coverage
networkfusion fa19eef
Merge branch 'main' into add-test-code-coverage
networkfusion File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
|
||
namespace nanoFirmwareFlasher.Tests | ||
{ | ||
[TestClass] | ||
public class CloudsmithApiTests | ||
{ | ||
[TestMethod] | ||
public void CheckApiUriExists() | ||
{ | ||
Assert.IsTrue(false); | ||
} | ||
|
||
[TestMethod] | ||
public void CheckApiVersionExists() | ||
{ | ||
// And is not deprecated?! | ||
Assert.IsTrue(false); | ||
} | ||
|
||
[TestMethod] | ||
public void DecodePackageDetails() | ||
{ | ||
Assert.IsTrue(false); | ||
} | ||
|
||
[TestMethod] | ||
public void DecodePackageInformation() | ||
{ | ||
Assert.IsTrue(false); | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
|
||
namespace nanoFirmwareFlasher.Tests | ||
{ | ||
[TestClass] | ||
public class FirmwarePackageTests | ||
{ | ||
|
||
[TestMethod] | ||
public void ListReferenceTargets() | ||
{ | ||
Assert.IsTrue(false); | ||
} | ||
|
||
[TestMethod] | ||
public void ListCommunityTargets() | ||
{ | ||
Assert.IsTrue(false); | ||
} | ||
|
||
[TestMethod] | ||
public void DownloadReferenceTarget() | ||
{ | ||
Assert.IsTrue(false); | ||
} | ||
|
||
[TestMethod] | ||
public void DownloadCommunityTarget() | ||
{ | ||
Assert.IsTrue(false); | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
nanoFirmwareFlasher.Tests/nanoFirmwareFlasher.Tests.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
|
||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" /> | ||
<PackageReference Include="MSTest.TestAdapter" Version="2.2.7" /> | ||
<PackageReference Include="MSTest.TestFramework" Version="2.2.7" /> | ||
<PackageReference Include="coverlet.collector" Version="3.1.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.