You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> @test_logs (:warn, "This DataFrame is large. Computation may take a while.") add_label_column!(df, df2, :b)
Log Test Failed at REPL[47]:1
Expression: add_label_column!(df, df2, :b)
Log Pattern: (:warn, "This DataFrame is large. Computation may take a while.")
Captured Logs:
Test.LogRecord(Warn, "This DataFrame is large. Computation may take a while.", PreprocessMD, :PreprocessMD, :PreprocessMD_172387a5, "\\\\files.brown.edu\\Home\\aharri69\\Desktop\\GitHub\\PreprocessMD\\src\\PreprocessMD.jl", 270, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}())
Test.LogRecord(Warn, "This DataFrame is large. Computation may take a while.", PreprocessMD, :PreprocessMD, :PreprocessMD_172387a5, "\\\\files.brown.edu\\Home\\aharri69\\Desktop\\GitHub\\PreprocessMD\\src\\PreprocessMD.jl", 270, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}())
ERROR: There was an error during testing
The warning should be detected, since @test_nowarn fails for the same function call. The example test from the documentation works, so I wonder if it has to do with add_label_column! being inside a package module.
The warning should be detected, since @test_nowarn fails for the same function call. The example test from the documentation works, so I wonder if it has to do with
add_label_column!
being inside a package module.https://docs.julialang.org/en/v1/stdlib/Test/#Test.@test_logs
The text was updated successfully, but these errors were encountered: