Problem with my nose test plugin

Discussion in 'Python' started by Roald, Feb 2, 2013.

  1. Roald

    Roald Guest

    Hi all,

    I want to execute unit tests from web2py and I want to automatically discover, so I think it is wise to use nose tests for that. That way, I can write a plugin to receive the test results in stead of heaving to parse the output stream.
    I use nose.run(addPlugins[MyPlugin()]), and although I see the configure() and option() get called and also see that nose runs my tests. What boggles my mind is that none of my plugins functions get called. Do I need to configure something?

    Roald

    the code is on pastbin: http://pastebin.com/rcXh2VAy
     
    Roald, Feb 2, 2013
    #1
    1. Advertising

  2. Roald

    R. Osinga Guest

    On Saturday, February 2, 2013 3:43:45 PM UTC+1, R. Osinga wrote:
    > Hi all,
    >
    >
    >
    > I want to execute unit tests from web2py and I want to automatically discover, so I think it is wise to use nose tests for that. That way, I can write a plugin to receive the test results in stead of heaving to parse the output stream.
    >
    > I use nose.run(addPlugins[MyPlugin()]), and although I see the configure() and option() get called and also see that nose runs my tests. What boggles my mind is that none of my plugins functions get called. Do I need to configure something?
    >
    >
    >
    > Roald
    >
    >
    >
    > the code is on pastbin: http://pastebin.com/rcXh2VAy


    Addition: I use the ubuntu repo version 1.1.2-3
     
    R. Osinga, Feb 2, 2013
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Marcin Cenkier
    Replies:
    1
    Views:
    5,504
    Marcin Cenkier
    Apr 12, 2006
  2. Jan Koprowski
    Replies:
    0
    Views:
    555
    Jan Koprowski
    Jan 26, 2009
  3. Lacrima

    TDD with nose or py.test

    Lacrima, Nov 30, 2009, in forum: Python
    Replies:
    5
    Views:
    2,373
    geremy condra
    Dec 6, 2009
  4. Roy Smith

    Why doesn't nose see my plugin?

    Roy Smith, Jun 12, 2013, in forum: Python
    Replies:
    6
    Views:
    159
    alex23
    Jun 13, 2013
  5. Hareesha Karunakar

    python nose unit test - test plan preparation

    Hareesha Karunakar, Apr 2, 2014, in forum: Python
    Replies:
    2
    Views:
    60
    Mark Lawrence
    Apr 3, 2014
Loading...

Share This Page