Inherits from
- BaseSubcommand: enthought.ets.base_subcommand.BaseSubcommand
Method summary
- __init__(self, subparsers)
- extract_coverage(self, output)
- extract_from_status(self, status)
- extract_result(self, output)
- info_datetime(self)
- info_revision(self)
- info_system(self)
- info_tests(self)
- info_total(self)
- main(self, args, cfg)
- run_cmd(self, project)
- store_html(self, dirname)
- store_json(self, filename)
- store_pkl(self, filename)
Methods
- __init__(self, subparsers)
- extract_coverage(self, output)
Given the output from running a test, return the coverage in a dictionary.
- extract_from_status(self, status)
Given the status from running a test, return the number of skips, failures and errors, in a dictionary.
- extract_result(self, output)
Given the output from running a test, return the number tests, the duration of the test in seconds, and the status, in a dictionary.
- info_datetime(self)
Obtain the current date and time, and add it into self.dat.
- info_revision(self)
Obtain current SVN revision, and add it into self.dat.
- info_system(self)
Obtain system information, and add it into self.dat.
- info_tests(self)
Run the tests for the projects given by attribute self.projects, and add all gathered results into self.dat.
- info_total(self)
Calculate the total number of tests, skips, failues and errors.
- main(self, args, cfg)
Run tests for projects.
- run_cmd(self, project)
Given the name of a project, run the test command specified in in self.cmd and return the command that was run and it's stdout.
- store_html(self, dirname)
Create a directory 'dirname' which contains information about the tests (object self.dat) in browsable form.
- Note:
- Unfortunately the code in this function is somewhat hard to read. Makeing the code such clearer, would require a templating engine. However, being about to run the handy HTML overview option without another dependency was important.
- store_json(self, filename)
Store the object self.dat into a JSON file named filename.
- store_pkl(self, filename)
Store the object self.dat into a pickle file.