2.0 KiB
2.0 KiB
Prepare a testing environment
You must configure a testing environment to ensure you plugin code quality.
Use the following resources to download test, examples, and instructions on how to configure a testing environment:
Follow these additional guidelines on creating and formating your own tests:
- When creating your own test class, you must inherit this test class
from the
TestBasic
class inbase_test_case.py
, where the Fuel web client initialization is performed. - Each test class and method must be decorated with
@test
. - Each class in the test group has groups to run all test cases together and each test case has groups for a separate run.
- Test cases have the
depends_on
method ortest
which means that this test case does not run until thedepends_on
method ortest
is done.
Prepare a testing environment
Clone the
fuel-qa
Git repository:git clone https://github.com/stackforge/fuel-qa
Activate the virtual environment:
source ~/venv-nailgun-tests-2.9/bin/activate
Export the Fuel ISO:
export ISO_PATH=path-to-iso
Go to
fuel-qa
:cd fuel-qa/
Start the tests:
./utils/jenkins/system_tests.sh -t test -w \ $(pwd) -j fuelweb_test -i $ISO_PATH -o --group=setup
For additional information, type:
./utils/jenkins/system_tests.sh -h
autotests/autotests-workflow.rst autotests/autotests-files.rst