For the real grading, ScalaTest is executed in a separate JVM by the ScalaTestRunner with a security manager enabled.
For the real grading, ScalaTest is executed in a separate JVM by the ScalaTestRunner
with a security manager enabled. You can run the separte JVM using the scalaTest
task.
In this case we run tests in a security manager, and using a test timeout.
However, you can still run the tests in SBT's JVM using the standard test
task. In
that case, we can't use the security manager (it has not been activated in the command
line), and also we don't use the timeout.
Run task
and abort if it takes too long.
Run task
and abort if it takes too long. Seems the only way to do it
is using (deprecated) Thread.stop()
http://stackoverflow.com/questions/5715235/java-set-timeout-on-a-certain-block-of-code
This method has been deprecated in favor of macro assertion and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.
This method has been deprecated in favor of macro assertion and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.
This method has been deprecated in favor of macro assumption and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.
This method has been deprecated in favor of macro assumption and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.
This expect method has been deprecated. Please replace all invocations of expect with an identical invocation of assertResult instead.
This expect method has been deprecated. Please replace all invocations of expect with an identical invocation of assertResult instead.
This expectResult method has been deprecated. Please replace all invocations of expectResult with an identical invocation of assertResult instead.
This expectResult method has been deprecated. Please replace all invocations of expectResult with an identical invocation of assertResult instead.