Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bash
$ nosetests -p
Plugin xunit
Plugin multiprocess
Plugin capture
Plugin logcapture
Plugin coverage
Plugin attributeselector
Plugin doctest
Plugin profile
Plugin collect-only
Plugin isolation
Plugin pdb
Plugin marvin
Nose-timer

There is an interesting plugin named Nose-timer, which helps you to generate the execution time of individual python test. Link here: https://github.com/mahmoudimus/nose-timer

Running nosetest with --with-timer flag.

If you execute testing with marvin, add this parameter in cloud-marvin/pom.xml like this:

Code Block

 <executable>nosetests</executable>
                  <arguments>
                    <argument>--with-marvin</argument>
                    <argument>--marvin-config</argument>
                    <argument>${resolved.user.dir}/${resolved.marvin.config}</argument>
                    <argument>--load</argument>
                    <argument>-a</argument>
                    <argument>tags=${tag}</argument>
                    <argument>${resolved.user.dir}/${test}</argument>
                    <argument>-v</argument>
                    <argument>--result-log=/home/mint/simulator/result.log</argument>
                    <argument>--client-log=/home/mint/simulator/debug.log</argument>
                    <argument>--with-timer</argument>
                  </arguments>

Marvin plugin

Code Block
bash
$ nosetests --with-marvin --marvin-config=/path/to/basic_zone.cfg --load /path/to/tests

...

For any feedback, typo corrections please email the dev@cloudstack.apache.org listslist.