Skip to content

Commit

Permalink
remove coverage file and corrections github
Browse files Browse the repository at this point in the history
  • Loading branch information
jfilhoGN committed Dec 7, 2024
1 parent 4d153ec commit 10aae75
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 1,092 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,26 @@ jobs:
Pkg.precompile();
'
- name: Run coverage script
- name: Run tests with coverage
run: |
julia --project=. run_coverage.jl
julia --project=. -e '
using Pkg;
Pkg.test(; coverage=true);
'
- name: Generate coverage report
run: |
julia --project=. -e '
using Coverage;
results = process_folder();
LCOV.writefile("coverage.lcov", results);
'
- name: Upload coverage report to Codecov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.lcov
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
name: Code coverage
fail_ci_if_error: true

27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Arquivos gerados pelo Coverage.jl
coverage.*
*.lcov

# Logs e artefatos temporários
*.log
*.tmp
*.bak

# Diretórios de cache do Julia
.julia/
.julia_artifacts/
.julia_compilecache/

# Diretórios criados para ambientes do projeto
deps/
build/
artifacts/

# Diretórios de testes temporários
test/.temp/
test/*.jld2
test/*.h5

# Qualquer outro arquivo temporário ou não necessário
*.DS_Store
*.~lock.*
379 changes: 0 additions & 379 deletions src/core.jl.73885.cov

This file was deleted.

379 changes: 0 additions & 379 deletions src/core.jl.75010.cov

This file was deleted.

32 changes: 0 additions & 32 deletions src/report.jl.73885.cov

This file was deleted.

32 changes: 0 additions & 32 deletions src/report.jl.75010.cov

This file was deleted.

69 changes: 0 additions & 69 deletions src/utils.jl.73885.cov

This file was deleted.

69 changes: 0 additions & 69 deletions src/utils.jl.75010.cov

This file was deleted.

19 changes: 5 additions & 14 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Coverage
using Test
using Stressify

Expand All @@ -7,17 +6,9 @@ include("test_utils.jl")
include("test_report.jl")
include("test_core.jl")

# Obtenha a cobertura de código
coverage_data = @coverage begin
# Execute seus testes
@testset "Stressify Tests" begin
include("test_utils.jl")
include("test_report.jl")
include("test_core.jl")
end
# Execute os testes
@testset "Stressify Tests" begin
include("test_utils.jl")
include("test_report.jl")
include("test_core.jl")
end

# Gere o relatório de cobertura em formato LCOV
lcov_file = joinpath(pwd(), "coverage.lcov")
write(lcov_file, LCOV.writeLcov(coverage_data))
println("Cobertura gerada em $lcov_file")
57 changes: 0 additions & 57 deletions test/test_utils.jl.73885.cov

This file was deleted.

Loading

0 comments on commit 10aae75

Please sign in to comment.