Upddate tox config

- Removes py3 env since we don't run unit tests
- Update requirements to use stestr and coverage
- Update tox.ini to use stestr

Change-Id: Iecb18a3e616173217b7edb756dcaabd8df009629
diff --git a/.gitignore b/.gitignore
index 963e589..9999471 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,6 +29,7 @@
 nosetests.xml
 .testrepository
 .venv
+.stestr/
 
 # Translations
 *.mo
@@ -55,4 +56,4 @@
 .*sw?
 
 # Files created by releasenotes build
-releasenotes/build
\ No newline at end of file
+releasenotes/build
diff --git a/.stestr.conf b/.stestr.conf
new file mode 100644
index 0000000..473b6e2
--- /dev/null
+++ b/.stestr.conf
@@ -0,0 +1,3 @@
+[DEFAULT]
+test_path=${OS_TEST_PATH:-./ironic_tempest_plugin}
+top_dir=./
diff --git a/test-requirements.txt b/test-requirements.txt
index 9292937..60a3752 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -4,6 +4,9 @@
 
 hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
 
+stestr>=1.0.0 # Apache-2.0
+coverage!=4.4,>=4.0 # Apache-2.0
+
 sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
 openstackdocstheme>=1.20.0 # Apache-2.0
 
diff --git a/tox.ini b/tox.ini
index 60be8ec..6d79734 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 [tox]
 minversion = 3.1.0
-envlist = py3,pep8
+envlist = pep8
 skipsdist = True
 ignore_basepython_conflict=true
 
@@ -13,7 +13,7 @@
    PYTHONWARNINGS=default::DeprecationWarning
 deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
        -r{toxinidir}/test-requirements.txt
-commands = python setup.py test --slowest --testr-args='{posargs}'
+commands = stestr run --slowest {posargs}
 
 [testenv:pep8]
 commands = flake8 {posargs}
@@ -22,7 +22,14 @@
 commands = {posargs}
 
 [testenv:cover]
-commands = python setup.py test --coverage --testr-args='{posargs}'
+setenv =
+    {[testenv]setenv}
+    PYTHON=coverage run --source ironic_tempest_plugin --parallel-mode
+commands =
+    stestr run {posargs}
+    coverage combine
+    coverage htlm -d cover
+    coverage xml -o cover/coverage.xml
 
 [testenv:docs]
 commands = python setup.py build_sphinx