rad  3.0.0
Functions
etr.tools.tests Namespace Reference

Functions

def make_basename (index, test_file_path)
 Helper that creates a unified basename out of the test index and the test file path. More...
 
def make_tests (list tests, bool randomize, list test_filters)
 Helper that creates the list of tests execute. More...
 

Function Documentation

◆ make_basename()

def etr.tools.tests.make_basename (   index,
  test_file_path 
)

Helper that creates a unified basename out of the test index and the test file path.

make_basename(0, 'src/test.robot')

'00_test'

◆ make_tests()

def etr.tools.tests.make_tests ( list  tests,
bool  randomize,
list  test_filters 
)

Helper that creates the list of tests execute.

Additionally, it implements standard features that should be valid across any test runner plugin. These are:

  • Test randomization
  • Test selection/filtering

Returns an ordered list (that may be shuffled) of tuples where each tuple contains the original sequence and the test filename, e.g.:

[(12, 'src/some_test.robot'), (1, 'src/other_test.robot'), ...]