fortiosapi icon indicating copy to clipboard operation
fortiosapi copied to clipboard

Need instructions on how to run tests

Open gward opened this issue 6 years ago • 1 comments

It's unclear how to run the tests in this project. There is a small blurb in README.md, but I have never used tox so I don't know what I need to do. It's also unclear what "virsh access" means -- does that mean the tests use libvirt/virsh/KVM/etc. to run in a virtualized environment? If so, what versions of Linux are supported? Are any other operating systems supported?

It would be much more helpful if the README file specified:

  • what operating system(s) are supported for running the tests
  • what additional OS packages must be installed to run the tests
  • what versions of Python are supported and/or required
  • the exact shell command(s) I must run to run the tests

For the record, here are the things I tried:

  1. Create a virtualenv, "pip install -r requirements.txt", "pip install tox", then run tox. This failed in a variety of ways. (I'll open separate issues for them.)
  2. "python setup.py test". This did a bunch of stuff and finished with "Ran 0 tests in 0.000s". Not the expected outcome!

gward avatar Feb 08 '19 17:02 gward

Also, HACKING.md tells me to run tests in what appears to be a virtualenv, .tox/py27. But it does not tell me how to create that virtualenv (or whatever it is).

gward avatar Feb 08 '19 17:02 gward