@test in Pluto

Hi has anybody tried to use @test from Pluto? I run into issues with both Pluto & PlutoTest

thanks

1 Like

PlutoTest works for me.
Could you please post a MWE with the concrete error message?

Sorry,
I forgot to include the links about the issues:

thanks

Looks like PlutoTest @test is not recognizing the local scope of the for loop (a is not defined as global variable, but only inside the for loop). When using @test outside of the for-loop it works.
I suggest to create an Issue at PlutoTest.

Regarding Test (not PlutoTest), the behavior in Pluto is probably the expected behavior - @test just raises an exception. To get a description of the successful and failed test cases wrap it in @testset.

hi

I suggest to create an Issue at PlutoTest.
yes, "not defined" error when variable within a loop · Discussion #7 · JuliaPluto/PlutoTest.jl · GitHub

To get a description of the successful and failed test cases wrap it in @testset .

See @test to display the tested values · Issue #1406 · fonsp/Pluto.jl · GitHub

1 Like