fixtures.parallelizer.remote module

class fixtures.parallelizer.remote.SlaveManager(config, slaveid, appliance_config, zmq_endpoint)[source]

Bases: object

SlaveManager which coordinates with the master process for parallel testing

handle_quit()[source]
message(message, **kwargs)[source]

Send a message to the master, which should get printed to the console

pytest_collection_finish(session)[source]

pytest collection hook

  • Sends collected tests to the master for comparison
pytest_internalerror(excrepr)[source]

pytest internal error hook

  • logs full traceback
  • reports short traceback to the py.test console
pytest_runtest_logreport(report)[source]

pytest runtest logreport hook

  • sends serialized log reports to the master
pytest_runtest_logstart(nodeid, location)[source]

pytest runtest logstart hook

  • sends logstart notice to the master
pytest_runtestloop(session)[source]

pytest runtest loop

  • iterates over and runs tests in the order received from the master
pytest_sessionfinish()[source]
send_event(name, **kwargs)[source]
shutdown()[source]
fixtures.parallelizer.remote.serialize_report(rep)[source]

Get a TestReport ready to send to the master