Hello all

New to the list!, recently needed to run some python code using mininet to test some python p2p applications:

http://mininet.org/

https://github.com/mininet/mininet/blob/master/examples/emptynet.py

From the home page: "Mininet creates a realistic virtual network, running real kernel, switch and application code, on a single machine (VM, cloud or native), in seconds".

The real need was a way to run my test suite and have the tests that use mininet run in the VM and report the results back to the host pytest session.

https://github.com/guilledk/pytest-vnet

Right now the tests must be fully self contained (include their imports), as the system works by dynamically creating python scripts inside a docker container, running them and catching exceptions.

Moving forward error logging improvements will be prioritized (right now a generic AssertionError with the captured traceback is shown but line numbers are all messed up), also sliming down the base docker image.

Any feedback appreciated


Guillermo Rodriguez

_______________________________________________
pytest-dev mailing list
pytest-dev@python.org
https://mail.python.org/mailman/listinfo/pytest-dev

Reply via email to