Distributed testing does not call teardown fns

Create issue
Issue #66 resolved
memedough created an issue

Hi Holger,

Fixtures (both funcarg & xunit style) don't appear to work correctly for distributed testing.

For funcarg fixtures using cached_setup fn all scopes work correctly for normal testing. However for distributed testing only "function" scope will call the teardown fn. For distributed testing the scopes "session" and "module" will not call the teardown fn. Code snippet (note that i did have a test fn in there that takes the release funcarg):


For xunit style fixtures all work correctly for normal testing. However for distributed testing only setup_method/teardown_method work. So using setup_class/teardown_class or setup_module/teardown_module will not call the teardown fn.

Module: http://pastebin.com/m1fb10a0b

Class: http://pastebin.com/d49e3a7c3


Comments (4)

  1. Holger Krekel repo owner
    • changed status to open

    That's indeed a bug, a somewhat serious one. Will see to get out a 1.1.2 but would like to have you test it before in your setting. Btw, are you subscribed to the mailing list?

  2. Holger Krekel repo owner

    fix sessionstart/sessionfinish handling at the slave side, set "session.nodeid" to id of the slave and make sure "final" teardown failures are reported nicely. fixes issue66.


  3. memedough reporter

    Hi Holger,

    I can confirm that teardown fns are now called for distributed testing for both xunit and funcarg style fixtures. However they still don't get called if the testing is stopped with control c (sig int), but this is a separate (if related) issue so I raised a new issue and I think we should consider this one fixed.


  4. Log in to comment