Skip to content

Commit

Permalink
Add yet another unit test (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge authored Jun 8, 2021
1 parent 718fddc commit d3e304a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "CoverageTools"
uuid = "c36e975a-824b-4404-a568-ef97ca766997"
authors = ["Iain Dunning <[email protected]>"]
version = "1.2.6"
version = "1.2.7"

[compat]
julia = "0.7, 1"
Expand Down
18 changes: 18 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -241,4 +241,22 @@ end # testset
end
end

@testset "CoverageTools.jl" begin
@testset "clean_file" begin
mktempdir() do tmp_dir
cd(tmp_dir) do
source_file = joinpath(tmp_dir, "foo.jl")
cov_file = joinpath(tmp_dir, "foo.jl.12345.cov")
touch(source_file)
touch(cov_file)
@test isfile(source_file)
@test isfile(cov_file)
CoverageTools.clean_file(source_file)
@test isfile(source_file)
@test !isfile(cov_file)
end
end
end
end

end # withenv

2 comments on commit d3e304a

@DilumAluthge
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/38447

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.2.7 -m "<description of version>" d3e304ab0176c31887728debfeb176aaf0b46ef8
git push origin v1.2.7

Please sign in to comment.