问题
I like to use breakpoints inside my tests to see what's going wrong, but the 30 second timeout on the tests prevents me to look around freely.
Is there a way to disable it ? The following doesn't work :
@tag timeout: 0
test "something" do
assert something == 42
end
回答1:
UPDATE:
With Elixir 1.1, you will also be able to run tests with the
--trace
option:mix test --trace
. It will automatically set timeout to infinity.– José Valim
PRE Elixir 1.1:
Maybe try using:
ExUnit.configure(timeout: 600_000)
# or even:
ExUnit.configure(timeout: :infinity)
Docu and source code
来源:https://stackoverflow.com/questions/31321150/no-timeout-in-tests