Speeding up TestNG execution with Seam

Solution Unverified - Updated -

Environment

  • JBoss Enterprise Application Platform (EAP) 5
  • Seam 2.2
  • TestNG

Issue

  • Is there is anything we can do to speed up TestNG execution, it appears the majority of the time is taken up by TestNG setting up for the test. 

Resolution

The perception of the slowness of testing is due to the Embedded JBoss being bootstrapped and started which takes somewhere between 10 and 30 seconds depending on the machine.  The tests are fast, but they must be run in the Embedded JBoss which like regular JBoss, takes a certain amount of time to start.  This can't be avoided.  Once JBoss is started however, many tests can run on the one Embedded instance, so the test execution is fast after the initial startup period.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.