Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cross-project-issues-dev] Timeout when running tests

At one point, we found a test in p2 that was hung, and this led me to look into if it was possible to configure JUnit to timeout tests that take too long. I did some googling, and found that in JUnit 4 it is possible to set timeout per test using annotations - seems like a very nice feature. In JUnit 3 it seems like it is possible to configure the overall timeout behavior, but that something known as fork-mode must be used at the same time.

What are others doing wrt. to tests and timeouts. Is the Eclipse infrastructure set up to timeout long running tests?

Henrik Lindberg

Back to the top