Skip to content

Commit

Permalink
Revert last changes and infinite github tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JoergHoffmannatGitHub committed Jan 31, 2024
1 parent 6b12433 commit 5f55445
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 16 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:

build:

strategy:
matrix:
configuration: [Debug, Release]

runs-on: windows-latest # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on

Expand Down Expand Up @@ -38,11 +42,15 @@ jobs:

# Build the application
- name: Build the application
run: dotnet build $env:Solution_Name --configuration Release --no-restore
run: dotnet build $env:Solution_Name --configuration $env:Configuration --no-restore
env:
Configuration: ${{ matrix.configuration }}

# Execute all unit tests in the solution
- name: Execute unit tests
run: dotnet test --configuration Release --no-build --logger GitHubActions '/p:CollectCoverage=true;CoverletOutputFormat=\"json,lcov,cobertura,opencover\";MergeWith=${{github.workspace}}/coverage.json;CoverletOutput=${{github.workspace}}/coverage' -- RunConfiguration.CollectSourceInformation=true
run: dotnet test --configuration $env:Configuration --no-build --logger GitHubActions '/p:CollectCoverage=true;CoverletOutputFormat=\"json,lcov,cobertura,opencover\";MergeWith=${{github.workspace}}/coverage.json;CoverletOutput=${{github.workspace}}/coverage' -- RunConfiguration.CollectSourceInformation=true
env:
Configuration: ${{ matrix.configuration }}

# Archive the package
- name: Create archive
Expand Down
30 changes: 16 additions & 14 deletions FamilyShowLib.Tests/PeopleTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

public class PeopleTest
{
[Fact]
//[Fact]
// This test will run infinite on GitHub
public void LoadOPC()
{
People sut = new()
Expand All @@ -19,20 +20,21 @@ public void LoadOPC()
}

//[Fact]
//public void LoadVersion2()
//{
// People sut = new()
// {
// FullyQualifiedFilename = Sample.FullName("Windsor.family")
// };
// bool loaded = sut.LoadVersion2();
// This test will run infinite on GitHub
public void LoadVersion2()
{
People sut = new()
{
FullyQualifiedFilename = Sample.FullName("Windsor.family")
};
bool loaded = sut.LoadVersion2();

// Assert.NotNull(sut);
// Assert.True(loaded);
// Assert.Equal(81, sut.PeopleCollection.Count);
// Assert.Empty(sut.SourceCollection);
// Assert.Empty(sut.RepositoryCollection);
//}
Assert.NotNull(sut);
Assert.True(loaded);
Assert.Equal(81, sut.PeopleCollection.Count);
Assert.Empty(sut.SourceCollection);
Assert.Empty(sut.RepositoryCollection);
}
}

public class ContentChangedEventArgsTest
Expand Down

0 comments on commit 5f55445

Please sign in to comment.