Running one single test...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Timothy Grant

    Running one single test...

    At work we use Perl and a home rolled unittesting mechanism. One of the things
    I love about That testing mechanism is that I can run one single test. In
    fact, I've configured Vim to run the current test and either tell me if it
    passes or tell me the error when it doesn't.

    I'd love to do something similar with PyUnit, but I have yet to figure out how
    to run one single test.

    Any help would be greatly appreciated.

    Thank you.

    --
    Stand Fast,
    tjg.

    Timothy Grant



  • Peter Hansen

    #2
    Re: Running one single test...

    Timothy Grant wrote:[color=blue]
    >
    > At work we use Perl and a home rolled unittesting mechanism. One of the things
    > I love about That testing mechanism is that I can run one single test. In
    > fact, I've configured Vim to run the current test and either tell me if it
    > passes or tell me the error when it doesn't.
    >
    > I'd love to do something similar with PyUnit, but I have yet to figure out how
    > to run one single test.
    >
    > Any help would be greatly appreciated.[/color]

    From the command line, assuming your tests are functions named testNN() in a
    class called MyTestCase in a file called tests.py:

    python tests.py MyTestCase.test 01

    -Peter

    Comment

    Working...