tendril.frontend.blueprints.testing.views module

Docstring for views

tendril.frontend.blueprints.testing.views.get_test_report(session=None, **kwargs)[source]

Constructs and returns the stage components for the latest test results marked against the specified serialno.

Since this function is defined against the database, all arguments should be keyword arguments.

Parameters:
  • serialno (str or tendril.entityhub.db.SerialNumber) – The serial number of the device.
  • session – The database session. If None, the function will make it’s own.
Returns:

The output file path.

Stage Keys Provided

sno Serial number of the device.
testdate The timestamp of the latest test suite.
devicetype The device type.
desc The device description.
svnrevision The VCS revision of the project config file.
svnrepo The VCS repository containing the project
graphs A list of graphs, each graph being the htmlcontent generated by python-nvd3.
instruments A list of instrument ident strings, one for each unique instrument used in the suites.
suites A list of instances of tendril.testing.testbase.TestSuiteBase or its subclasses.

Note that the suites provided to the template are typically expected to be offline test suites which are reconstructed from the database.

Todo

Move this function into tendril.testing.analysis and have tendril.dox.testing.render_test_report() use the same infrastructure.

tendril.frontend.blueprints.testing.views.results(*args, **kwargs)[source]
tendril.frontend.blueprints.testing.views.main(*args, **kwargs)[source]