p-unit 0.1 Download

fyxm network: our download portal - Softliste.de
p-unit
        Bookmark and Share
  • Name:p-unit
  • License:GPL
  • Developer:Andrew Zhang
  • Downloads:126
  • Rating:2 / 5
  • OS:Windows All / Unix
  • Size:2.6 MB
  • D.M.C.A. 
  • Download > 

p-unit 0.1

p-unit 0.1 Description:

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 don't 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 DON'T 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 security information

You cannot download any crack or serial number for p-unit on this page. Every software that you are able to download on our site is legal. There is no crack, serial number, hack or activation key for p-unit present here. Our collection also doesn't contain any keygens, because keygen programs are being used in illegal ways which we do not support. All software that you can find here is freely downloadable and legal.

p-unit installation package is prepared to be downloaded from our fast download servers. It is checked for possible viruses and is proven to be 100% clean and safe. Various leading antiviruses have been used to test p-unit, if it contains any viruses. No infections have been found and downloading p-unit is completelly problem free because of that reason. Our experts on malware detection tested p-unit with various spyware and malware detection programs, including fyxm.net custom malware and spyware detection, and absolutelly no malware or spyware was found in p-unit.

All software that you can find on our servers, including p-unit, is either freeware, shareware or open-source, some of the software packages are demo, trial or patch versions and if possible (public domain licence), we also host official full versions of software.

Because we want to be one of the fastest download sites on the web, we host all the software including p-unit on our servers. You cannot find here any torrents or download links that would lead you to dangerous sites.

Fyxm.net does support free software, however we do not support warez or illegal downloads. Warez is harming producers of the software.

Enjoy!

Rate p-unit 0.1!

Rating: 2.1/5 (11 votes cast)

Similar Programs License Size Rating  
Unit Converter Freeware 337 KB 2 / 5
RRs Unit Converter Trial 1 MB 2 / 5
UNIT CONVERSION Freeware 32 KB 1 / 5
Unit Mate Trial 6.3 MB 2 / 5
Das Unit Converter Freeware 4.2 MB 2 / 5

Featured Products

LimeWire 5.2.1 Beta / 5.1.3

LimeWire

Share computer files with anyone on the internet!

Kaspersky Anti-Virus Personal 2010

Kaspersky Anti-Virus Personal

BKaspersky AV provides all types of anti-virus protection

Winamp 5 Full

Winamp

A flexible and sophisticated application for playing and managing your music

DAEMON Tools Lite 4.30.4

Daemon Tools

Advanced application for multiprotection emulation

CMS Templates Download

Blogger Themes

Check our website devoted to CMS themes download
FYXM.net - We have everything! If not - please do contact us here.