Skip to content

Commit

Permalink
Remove TimerOutputs
Browse files Browse the repository at this point in the history
  • Loading branch information
rikhuijzer committed Oct 22, 2023
1 parent 08afa1f commit 05dccb5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 27 deletions.
2 changes: 1 addition & 1 deletion src/mimeoverride.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const CONFIG_PLUTORUNNER = """
PlutoRunner.is_mime_enabled(::MIME"application/vnd.pluto.tree+object") = false
PlutoRunner.is_mime_enabled(::MIME"application/vnd.pluto.table+object") = false
PlutoRunner.PRETTY_STACKTRACES[] = false
"""

Expand Down
1 change: 0 additions & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Pluto = "c3e4b0f8-55cb-11ea-2926-15256bba5781"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
TimerOutputs = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f"

[compat]
Aqua = "0.5"
12 changes: 0 additions & 12 deletions test/preliminaries.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ using Pluto:
ServerSession,
SessionActions
using Test
using TimerOutputs: TimerOutput, @timeit

const PS = PlutoStaticHTML
const PKGDIR = string(pkgdir(PlutoStaticHTML))::String
Expand Down Expand Up @@ -105,17 +104,6 @@ function notebook2pdf_helper(
return (pdf_path, nb)
end

# Credits to Tensors.jl/test/runtests.jl
macro timed_testset(str, block)
return quote
@timeit TIMEROUTPUT "$($(esc(str)))" begin
@testset "$($(esc(str)))" begin
$(esc(block))
end
end
end
end

function notebook2html(
path::AbstractString;
oopts::OutputOptions=OutputOptions(),
Expand Down
22 changes: 9 additions & 13 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,41 +1,37 @@
include("preliminaries.jl")

const TIMEROUTPUT = TimerOutput()

@timed_testset "pdf" begin
@testset "pdf" begin
include("pdf.jl")
end

@timed_testset "context" begin
@testset "context" begin
include("context.jl")
end

@timed_testset "cache" begin
@testset "cache" begin
include("cache.jl")
end

@timed_testset "mimeoverride" begin
@testset "mimeoverride" begin
include("mimeoverride.jl")
end

@timed_testset "with_terminal" begin
@testset "with_terminal" begin
include("with_terminal.jl")
end

@timed_testset "html" begin
@testset "html" begin
include("html.jl")
end

@timed_testset "style" begin
@testset "style" begin
include("style.jl")
end

@timed_testset "build" begin
@testset "build" begin
include("build.jl")
end

@timed_testset "aqua" begin
@testset "aqua" begin
Aqua.test_all(PlutoStaticHTML; ambiguities=false)
end

show(TIMEROUTPUT; compact=true, sortby=:firstexec)

0 comments on commit 05dccb5

Please sign in to comment.