Skip to content

How to build parametrized tests locally

Ilfat edited this page May 11, 2017 · 1 revision

How to build parametrized tests locally

General(important)

Locally means not on server where exists jenkins job: http://maxscale-jenkins.mariadb.com:8090/view/All/job/run-inner-mdbci-parametrized-tests. Because creating libvirt configurations can crash because of existing similar domain names (libvirt machines), that were created by the job.

Preconfigure original machines


ruby scripts/parametrized_testing/parametrized_testing_environment_setup.rb --start

Run tests

Next command must be executed in mdbci folder
Unit:


./scripts/run_unit_parametrized_tests.sh -t TEST_SET

Integration:

./scripts/run_integration_parametrized_tests.sh -t TEST_SET

TEST_SET – is a array of test names devided with comma.
Example of test name:

filename: test1_spec.rb
test name: test1


Example of test set: test1,test2

Clean up

ruby scripts/parametrized_testing/parametrized_testing_environment_setup.rb —remove