Refactor tests launching procedure 24/98224/2
authorGuillaume Lambert <guillaume.lambert@orange.com>
Fri, 18 Jun 2021 20:18:39 +0000 (22:18 +0200)
committerVachhani, Shweta (sv111y) <sv111y@att.com>
Sat, 30 Oct 2021 13:28:36 +0000 (09:28 -0400)
commit7350cc3b499535a4ce2e066980225ab55238d0c3
treecabbf5dcb0de091aa5ca64cc3e6355de14db6250
parent431cebcda74e224b78f8dc389088c0803dbabfa4
Refactor tests launching procedure

The possibility to run test separately was lost during preliminary work
to prepare jobs parallelization.
This refactoring restores that feature but with a different approach.
For example, the equivalents of the old commands
    $ tox -e topoPortmapping
and
    $ tox -e portmapping,pce
are now
    $ tox -e tests121 topo_portmapping
and
    $ tox -e tests121 "portmapping pce"
(preceded by $ tox -e buildcontroller)

The possibility to choose the script launcher command from a global
variable have been added.
For example,
    $ export LAUNCHER='python3'
allows to replace 'nosetests --with-xunit' by a straight call to python3
to have more debug output during tests.

Tests order can also be changed by directly modifying script filenames
without touching tox.ini. Filenames have been modified here to add a
numbering and keep the tests current order.

JIRA: TRNSPRTPCE-482
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I725d1dfac42bd309d18fbf87ff1c85bc1bce5be9
22 files changed:
tests/launch_tests.sh [new file with mode: 0755]
tests/transportpce_tests/1.2.1/test01_portmapping.py [moved from tests/transportpce_tests/1.2.1/test_portmapping.py with 100% similarity]
tests/transportpce_tests/1.2.1/test02_topo_portmapping.py [moved from tests/transportpce_tests/1.2.1/test_topo_portmapping.py with 100% similarity]
tests/transportpce_tests/1.2.1/test03_topology.py [moved from tests/transportpce_tests/1.2.1/test_topology.py with 100% similarity]
tests/transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py [moved from tests/transportpce_tests/1.2.1/test_renderer_service_path_nominal.py with 100% similarity]
tests/transportpce_tests/1.2.1/test05_olm.py [moved from tests/transportpce_tests/1.2.1/test_olm.py with 100% similarity]
tests/transportpce_tests/1.2.1/test06_end2end.py [moved from tests/transportpce_tests/1.2.1/test_end2end.py with 100% similarity]
tests/transportpce_tests/2.2.1/test01_portmapping.py [moved from tests/transportpce_tests/2.2.1/test_portmapping.py with 100% similarity]
tests/transportpce_tests/2.2.1/test02_topology.py [moved from tests/transportpce_tests/2.2.1/test_topology.py with 100% similarity]
tests/transportpce_tests/2.2.1/test03_otn_topology.py [moved from tests/transportpce_tests/2.2.1/test_otn_topology.py with 100% similarity]
tests/transportpce_tests/2.2.1/test04_flex_grid.py [moved from tests/transportpce_tests/2.2.1/test_flex_grid.py with 100% similarity]
tests/transportpce_tests/2.2.1/test05_renderer_service_path_nominal.py [moved from tests/transportpce_tests/2.2.1/test_renderer_service_path_nominal.py with 100% similarity]
tests/transportpce_tests/2.2.1/test06_otn_renderer.py [moved from tests/transportpce_tests/2.2.1/test_otn_renderer.py with 100% similarity]
tests/transportpce_tests/2.2.1/test07_otn_sh_renderer.py [moved from tests/transportpce_tests/2.2.1/test_otn_sh_renderer.py with 100% similarity]
tests/transportpce_tests/2.2.1/test08_olm.py [moved from tests/transportpce_tests/2.2.1/test_olm.py with 100% similarity]
tests/transportpce_tests/2.2.1/test09_tapi.py [moved from tests/transportpce_tests/2.2.1/test_tapi.py with 100% similarity]
tests/transportpce_tests/2.2.1/test10_otn_end2end.py [moved from tests/transportpce_tests/2.2.1/test_otn_end2end.py with 100% similarity]
tests/transportpce_tests/2.2.1/test11_end2end.py [moved from tests/transportpce_tests/2.2.1/test_end2end.py with 100% similarity]
tests/transportpce_tests/7.1/test01_portmapping.py [moved from tests/transportpce_tests/7.1/test_portmapping.py with 100% similarity]
tests/transportpce_tests/pce/test01_pce.py [moved from tests/transportpce_tests/pce/test_pce.py with 100% similarity]
tests/transportpce_tests/pce/test02_pce_400G.py [moved from tests/transportpce_tests/pce/test_pce_400G.py with 100% similarity]
tox.ini