Data Structures --------------- Overview ======== By extending :class:`~nosedbreport.base.NoseDBReporterBase` you essentially have access to two relevant dictionaries, :attr:`~nosedbreport.base.NoseDBReporterBase.test_suites` and :attr:`~nosedbreport.base.NoseDBReporterBase.test_case_results`. MySQL Example ============= The :class:`~nosedbreport.mysql.NoseMySQLReporter` backend translates the data structures of the plugin into mysql tables using 4 tables: * testsuite * testsuiteexecution * testcase * testcaseexecution The MySQL tables are roughly related as follows: .. digraph:: MySQLDb graph [ rankdir="LR", fontname="Courier" ]; "testsuite" [ label="testsuite|name", shape="record" ]; "testcase" [ label="testcase|id|suite", shape="record" ]; "testsuiteexecution" [ label="testsuiteexecution|id|suite", shape="record" ]; "testcaseexecution" [ label="testcaseexecution|id|testcase", shape="record" ]; "testcase":f2->"testsuite":f1; "testcaseexecution":f2->"testcase":f1; "testsuiteexecution":f2->"testsuite":f1;