Results 1 to 1 of 1
Thread: p-unit 0.11
- 06-04-2007, 08:07 AM #1levent Guest
p-unit is a framework for unit testing and performance benchmarking. As a unit test, it can run with a single thread or multiple threads against the same test code. p-unit has an executor pool which can accelerate the execution speed dramatically. As a perforamnce test framework, it records memory consumption and execution time, and generates results in the form of plain text, image, and PDF file. Users can also easily register their own reporters by implementing the p-unit event listener.
Executor pool p-unit accelerates the execution speed by using executor pool, which fully takes advantage of hardware, especially multi-core machines. You can use annotation to identify the test method and expected exception, i.e. @Test(expected = NullPointerException.class, checkMethod = "checkAdd"). Check Method has been added, and is especially useful for concurrent testing. After executing a test method, p-unit invokes the corresponding check method if available. The name convention is "check_" prefix. You can also use @Test(checkMethod) to mark the check method.
URL: p-unit - An open source framework for performance benchmark and unit test
- By tpbkl in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 01-23-2008, 03:04 PM
- By Jamie in forum Java SoftwareReplies: 0Last Post: 06-16-2007, 09:33 AM
- By levent in forum Java SoftwareReplies: 0Last Post: 05-28-2007, 08:23 AM