Skip to content

Commit 16516b6

Browse files
committed
try embed html
1 parent 0b55134 commit 16516b6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/runtests.jl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ plotly()
6060
@test readdir(newdir) == ["sin x.svg"]
6161
@test read(joinpath(dir, "sin x.svg")) == read(joinpath(newdir, "sin x.svg"))
6262

63+
BuildkiteUtils.annotate("""
64+
Success!
65+
66+
$(read(joinpath(dir, "sin x.html"), String))
67+
"""; style="success", context="xtra")
68+
6369
else
6470

6571
@test sort(BuildkiteUtils.artifact_search(step="linux-latest")) == sort(["sin x.html", "sin x.svg", "extra/step.txt"])
@@ -84,11 +90,6 @@ end
8490
@testset "annotation" begin
8591
if step == "linux-latest"
8692
BuildkiteUtils.annotate("Hello from :linux:\n\n")
87-
BuildkiteUtils.annotate("""
88-
Success!
89-
90-
<a href="artifact://sin x.html"><img src="artifact://sin x.svg" alt="sin(x)" height=250 ></a>
91-
"""; style="success", context="xtra")
9293

9394
elseif step == "linux-v1.6"
9495
BuildkiteUtils.annotate("and from :linux: v1.6\n\n"; append=true)

0 commit comments

Comments
 (0)