'py.test' Tag

  • Jul
    08
    2010

    How to run a single unit test/unit test module with py.test

    Note to self: It is actually possible to select a single test module or a single test function in py.test.
    But passing the file name as argument to a py.test invocation selects only the doctest from that file (wtf!?). Instead, you need to call it like this:
    12$ py.test -k test_module    # to run the tests [...]

 
Powered by Wordpress and MySQL. Theme by openark.org