3
2a8) @ sh d dl Z d dlZd dlZddlmZmZ ddlmZ dZdZ dZ
dd Zd
d ZG dd
d
e
ZeZdS ) N )loaderrunner)installHandlerTa Examples:
%(prog)s test_module - run tests from test_module
%(prog)s module.TestClass - run tests from module.TestClass
%(prog)s module.Class.test_method - run specified test method
%(prog)s path/to/test_file.py - run tests from test_file.py
aF Examples:
%(prog)s - run default set of tests
%(prog)s MyTestSuite - run suite 'MyTestSuite'
%(prog)s MyTestCase.testSomething - run MyTestCase.testSomething
%(prog)s MyTestCase - run all 'test*' test methods
in MyTestCase
c C sx t jj| rt| j jdrtt jj| rXt jj| t j }t jj|sP|jt j rT| S |} | d d j
ddj
ddS | S )Nz.py \./)ospathisfilelowerendswithisabsrelpathgetcwd
startswithpardirreplace)nameZrel_path r )/opt/alt/python36/lib64/python3.6/main.py
_convert_name s r c C s dd | D S )Nc S s g | ]}t |qS r )r ).0r r r r