Skip to content

Commit

Permalink
fix: 실패 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
hhko committed Dec 24, 2024
1 parent 6f97db9 commit 90fb4db
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 23 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,9 @@ jobs:
# - ${{ github.run_number }}
# - ${{ github.run_id }}
env:
solution_dir: ./Template
solution_filename: Hello.sln

#coverage_in_cobertura_files: ./Template/**/*.cobertura.xml
coverage_out_dir: ./Template/.build/coverage
testresults_in_trx_files: ./Template/**/*.trx
#coverage_out_cobertura_file: ./Template/.build/coverage/Cobertura.xml
#testresult_dirs: ./Template/**/TestResults/**/*
solution_dir: ./Template
build_dir: ./Template/.build
solution_filename: Hello.sln

steps:
# 형상관리 최신 소스 받기
Expand Down Expand Up @@ -135,7 +130,7 @@ jobs:
if: always()
with:
reports: ${{ env.solution_dir }}/**/*.cobertura.xml
targetdir: '${{ env.coverage_out_dir }}'
targetdir: ${{ env.build_dir }}/coverage
reporttypes: 'Cobertura;MarkdownSummaryGithub'
verbosity: "Warning"
title: "Code Coverage"
Expand All @@ -146,7 +141,7 @@ jobs:
# 코드 커버러지 $GITHUB_STEP_SUMMARY에 추가
- name: Publish Coverage Report in Build Summary
if: always()
run: cat "${{ env.coverage_out_dir }}/SummaryGithub.md" >> $GITHUB_STEP_SUMMARY
run: cat "${{ env.build_dir }}/coverage/SummaryGithub.md" >> $GITHUB_STEP_SUMMARY
shell: bash

# 테스트 보고서
Expand All @@ -164,7 +159,7 @@ jobs:
if: always()
with:
name: Test Report
path: "${{ env.testresults_in_trx_files }}"
path: "${{ env.solution_dir }}/**/*.trx"
reporter: dotnet-trx

# # Publish-Unit-Test-Result-Action: https://github.com/EnricoMi/publish-unit-test-result-action?tab=readme-ov-file#permissions
Expand All @@ -179,7 +174,7 @@ jobs:
# if: always()
# with:
# files: |
# ${{ env.testresults_in_trx_files }}
# ${{ env.solution_dir }}/**/*.trx
# check_name: "Test Summary"

# # CodeCoverageSummary: https://github.com/irongut/CodeCoverageSummary
Expand All @@ -198,7 +193,7 @@ jobs:
# - name: Publish Code Coverage Report
# uses: irongut/[email protected]
# with:
# filename: "${{ env.coverage_out_dir }}/Cobertura.xml" # 머지된 Cobertura.xml 파일
# filename: "${{ env.build_dir }}/coverage/Cobertura.xml" # 머지된 Cobertura.xml 파일
# badge: true
# fail_below_min: false # just informative for now
# format: markdown
Expand Down
20 changes: 10 additions & 10 deletions Template/Backend/Api/Tests/Crop.Hello.Api.Tests.Unit/Class1.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
namespace Crop.Hello.Api.Tests.Unit;
//namespace Crop.Hello.Api.Tests.Unit;

public class Class1
{
[Fact]
public void Hello()
{
int x = 0;
int y = 2025 / x;
}
}
//public class Class1
//{
// [Fact]
// public void Hello()
// {
// int x = 0;
// int y = 2025 / x;
// }
//}

0 comments on commit 90fb4db

Please sign in to comment.