Weave.jl/test/runtests.jl

68 lines
1.3 KiB
Julia
Raw Normal View History

2020-05-15 17:38:18 +02:00
using Weave, Test
2020-05-15 18:49:55 +02:00
using Weave: WeaveDoc, run_doc
2014-12-06 18:16:45 +01:00
# TODO: add test for header processsing
# TODO: add test for `include_weave`
# constructs `WeaveDoc` from `String`
2020-05-15 16:51:52 +02:00
function mock_doc(str, format = "markdown")
f = tempname()
write(f, str)
2020-05-15 18:49:55 +02:00
return WeaveDoc(f, format)
2020-05-15 16:51:52 +02:00
end
2018-07-25 20:43:38 +02:00
@testset "Weave" begin
@testset "Chunk options" begin
include("chunk_options.jl")
end
@testset "module evaluation" begin
include("test_module_evaluation.jl")
end
@testset "header" begin
include("test_header.jl")
end
2020-05-09 15:35:45 +02:00
@testset "error rendering" begin
include("test_error_rendering.jl")
end
2020-05-15 17:38:18 +02:00
@testset "convertions" begin
include("test_converter.jl")
2018-07-25 20:43:38 +02:00
end
@testset "Formatters" begin
include("formatter_test.jl")
include("markdown_test.jl")
include("figureformatter_test.jl")
end
@testset "Rich output" begin
include("rich_output.jl")
end
2018-07-26 10:35:17 +02:00
@testset "Plots" begin
include("plotsjl_test.jl")
end
@testset "Cache" begin
include("cache_test.jl")
end
@testset "Gadfly" begin
include("gadfly_formats.jl")
end
@testset "Inline code" begin
include("inline_test.jl")
end
# @testset "Notebooks" begin
# @info("Testing Jupyter options")
# include("notebooks.jl")
# end
end