github.com/tiagovtristao/plz@v13.4.0+incompatible/tools/please_pex/behave.py (about)

     1  import os
     2  
     3  
     4  def get_features_dir():
     5      for i in TEST_NAMES:
     6          file_name = i.split('/')[-1]
     7          if '.feature' in file_name:
     8              return os.path.dirname(i)
     9  
    10  
    11  def run_tests(args=None):
    12      from behave.__main__ import main
    13  
    14      args = args or []
    15      args += [get_features_dir(), '--junit',
    16               '--junit-directory', 'test.results']
    17      main(args)