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
|
|
|
|
2020-05-09 09:52:01 +02:00
|
|
|
|
|
|
|
# TODO: add test for header processsing
|
|
|
|
# TODO: add test for `include_weave`
|
|
|
|
|
2020-05-09 15:33:58 +02:00
|
|
|
# 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
|
2020-05-09 15:33:58 +02:00
|
|
|
|
2020-05-09 09:52:01 +02:00
|
|
|
|
2018-07-25 20:43:38 +02:00
|
|
|
@testset "Weave" begin
|
|
|
|
@testset "Chunk options" begin
|
|
|
|
include("chunk_options.jl")
|
|
|
|
end
|
|
|
|
|
2020-05-09 09:52:01 +02:00
|
|
|
@testset "module evaluation" begin
|
|
|
|
include("test_module_evaluation.jl")
|
|
|
|
end
|
|
|
|
|
|
|
|
@testset "header" begin
|
|
|
|
include("test_header.jl")
|
2018-07-25 23:12:48 +02:00
|
|
|
end
|
|
|
|
|
2020-05-09 15:35:45 +02:00
|
|
|
@testset "error rendering" begin
|
|
|
|
include("test_error_rendering.jl")
|
|
|
|
end
|
|
|
|
|
2020-05-16 14:33:01 +02:00
|
|
|
@testset "conversions" begin
|
2020-05-15 17:38:18 +02:00
|
|
|
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
|
|
|
|
2018-07-26 19:32:10 +02:00
|
|
|
@testset "Plots" begin
|
|
|
|
include("plotsjl_test.jl")
|
|
|
|
end
|
|
|
|
|
2019-03-11 09:23:31 +01:00
|
|
|
@testset "Cache" begin
|
|
|
|
include("cache_test.jl")
|
|
|
|
end
|
|
|
|
|
2019-02-07 18:28:06 +01:00
|
|
|
@testset "Gadfly" begin
|
2019-03-11 09:23:31 +01:00
|
|
|
include("gadfly_formats.jl")
|
2019-02-07 18:28:06 +01:00
|
|
|
end
|
2016-12-13 17:44:44 +01:00
|
|
|
|
2019-03-06 21:27:47 +01:00
|
|
|
@testset "Inline code" begin
|
|
|
|
include("inline_test.jl")
|
|
|
|
end
|
2019-06-19 19:26:13 +02:00
|
|
|
|
|
|
|
# @testset "Notebooks" begin
|
|
|
|
# @info("Testing Jupyter options")
|
|
|
|
# include("notebooks.jl")
|
|
|
|
# end
|
2019-03-06 21:27:47 +01:00
|
|
|
end
|