carputils
Doxygen code documentation for the python framework controlling openCARP
Variables
bin.carptests Namespace Reference

Retrieve and run the carputils tests for a module or all modules in a package. More...

Variables

int TMP_DISCARD = 1
 
int TMP_KEEP = 2
 
 parser = argparse.ArgumentParser()
 
 default_pkg = settings.config.REGRESSION_PKG
 
 nargs
 
 default
 
 help
 
 type
 
 dest
 
 action
 
 all
 
 const
 
 group = parser.add_mutually_exclusive_group()
 
 args = parser.parse_args()
 
 data = json.load(fp)
 
 suite = testing.TestSuite.deserialise(data)
 
string tpl = ' Filtering for tests which {} {} of the tag(s):'
 
string sign = 'do not match' if args.invert else 'match'
 
string anyall = all else 'any'
 
 tests_to_run
 
 end
 
string message = tpl.format(suite.output_directory)
 
 fp
 
 indent
 
 IMPOSE_MAXIMUM_RUNTIME
 
 results = suite.copy_reference()
 
 json
 

Detailed Description

Retrieve and run the carputils tests for a module or all modules in a package.

Variable Documentation

◆ action

bin.carptests.action

◆ all

bin.carptests.all

◆ anyall

string bin.carptests.anyall = all else 'any'

◆ args

bin.carptests.args = parser.parse_args()

◆ const

bin.carptests.const

◆ data

bin.carptests.data = json.load(fp)

◆ default

bin.carptests.default

◆ default_pkg

list bin.carptests.default_pkg = settings.config.REGRESSION_PKG

◆ dest

bin.carptests.dest

◆ end

bin.carptests.end

◆ fp

bin.carptests.fp

◆ group

bin.carptests.group = parser.add_mutually_exclusive_group()

◆ help

bin.carptests.help

◆ IMPOSE_MAXIMUM_RUNTIME

bin.carptests.IMPOSE_MAXIMUM_RUNTIME

◆ indent

bin.carptests.indent

◆ json

bin.carptests.json

◆ message

string bin.carptests.message = tpl.format(suite.output_directory)

◆ nargs

bin.carptests.nargs

◆ parser

bin.carptests.parser = argparse.ArgumentParser()

◆ results

bin.carptests.results = suite.copy_reference()

◆ sign

string bin.carptests.sign = 'do not match' if args.invert else 'match'

◆ suite

bin.carptests.suite = testing.TestSuite.deserialise(data)

◆ tests_to_run

bin.carptests.tests_to_run
Initial value:
1 = list(testing.find_multi(args.modules,
2  name=args.name,
3  tags=args.tags,
4  combine=args.tag_combine,
5  invert=args.invert))
def list()
Definition: __init__.py:88

◆ TMP_DISCARD

bin.carptests.TMP_DISCARD = 1

◆ TMP_KEEP

int bin.carptests.TMP_KEEP = 2

◆ tpl

string bin.carptests.tpl = ' Filtering for tests which {} {} of the tag(s):'

◆ type

bin.carptests.type