p-unit 0.1

Sponsored Links

p-unit 0.1 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 2.63 MB
Platform: Windows All/Unix
License: GPL
Price:
Downloads: 885
Date added: 2007-05-29
Publisher: Andrew Zhang

p-unit 0.1 description

p-unit is an open source framework for performance benchmark and unit test p-unit is an open source framework for performance benchmark and unit test, which supports to run the same tests solo or concurrently, generates the result in the form of plain text, image or pdf file and tracks memory and time consumption.
Test Suite and Test Class
Test suite and test class are two important concepts in p-unit. p-unit does not require any special type for a test class, so every class can be a test class. Of course, it includes junit test cases. There is one special interface for special p-unit only test class - p-unitTest.
p-unit executes a normal test as following procedure:
- invoke setUp if there is.
- invoke the test method.
- invoke tearDown method.
Noticed that setUp and tearDown will also be regarded as a part of performance test. If you dont want to count them into performance data, you need to implement p-unitTest interface, which will be executed as:
- invoke setUpBeforeWatchers.
- invoke setAfterWatchers.
- invoke the test method.
- invoke tearDownBeforeWatchers.
- invoke tearDownAfterWatchers. As the name suggests, you can put the setUp and tearDown code into the setUpBeforeWatchers and tearDownAfterWatchers.
Time/Memory Record
p-unit records the memory and time consumption of running a test method. There is a "watcher" concept in p-unit, which supervises the status during running the test method.
By default, memory watcher and time watcher are installed. p-unit supports user-defined watcher too. The user only needs to implement the Watcher interface and register it to p-unit method runner.
By default, time watcher is enabled. If you want to watch memory consumption, you need to add one line code:
runner.methodRunner().addWatcher(new MemoryWatcher());
Concurrent
p-unit supports to run the test concurrently. How to write it? You DONT need to write anything about concurrent in your test - just the same as a normal test. You only need to use p-unitConcurrentRunner to run your test concurrently. For more detail, please refer to Runner.
Runner
Runner is the core concept of p-unit. You need a runner to run your test. By default, there are two different runners - solo runner and concurrent runner, so that one test can be executed solo and concurrently.
Is it complex to launch a runner? ONE line code:
new SoloRunner().run(MyTest.class); or new ConcurrentRunner().run(MyTest.class);
By default, p-unitConcurrentRunner starts up 10 threads to execute the test method. You can configure it in the constructor of p-unitConcurrentRunner(int threadCount), and you can even do fine control in your test class.
If you need to execute different test class with different thread count, you only need to implement Concurrent interface for your test, which requires to return concurrentCount.

p-unit 0.1 Screenshot

Advertisements

p-unit 0.1 Keywords

Bookmark p-unit 0.1

Hyperlink code:
Link for forum:

p-unit 0.1 Copyright

WareSeeker periodically updates pricing and software information of p-unit 0.1 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of p-unit 0.1 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Version History
Related Software
upDART Widget shows information about DART submissions using the RSS feeds generated by a DART2 server. Free Download
A C++ library to help you with your development. Free Download
unit testing integration & code generation Free Download
Visual Studio .NET unit testing software Free Download
Generates test patterns that will show DLP Free Download
allow developers to write white/grey-box unit test cases Free Download
MB Free Brain Test is a simple brain dominance test. This quiz gives a basic idea about which hemisphere of the brain is more dominant, the right or t... Free Download
While virtualization has tremendous benefits, it adds new complexity when it comes to managing your network Free Download