LegacyForumLegacyForum Posts: 1,669 ✭✭
edited December 2016 in Jtest
Is this configurable?
We're running into a problem where some of the code needed to build and run one of our test cases takes longer than 30 seconds, but Jtest times out with the jtest.TimeoutError error.

Is this error configurable or bypassable?



  • LegacyForumLegacyForum Posts: 1,669 ✭✭
    Yes this is configurable. What you would need to do is the following open the TestClass that was created for the
    java file that was under test. At the Bottom you will see a junit.framework.Test suite method. You can modify
    the milliseconds.

    Ie. I tested Simple.java from our example project. After it was done I opened the SimpleTest.java file
    and at the bottom of the file was the method below:
    public static junit.framework.Test suite() {
    return new jtest.IndependentTestSuite(
    // this class
    // fully qualified name of the tested class
    // timeout for each test in milliseconds
    so you can modify it from 30 seconds to 60 or the time it is best for you. (ie. 30000 to 60000)
  • LegacyForumLegacyForum Posts: 1,669 ✭✭
    Ah -- I saw that method, but wasn't sure what it did.

    Thanks for the help.
Sign In or Register to comment.