Among other things, it's not clear which fields are required. Some
examples on the page noted above have a <generator> and some don't.
--
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
Perhaps you can help me. Even though I now save a rich set of details
on the tests, the bitten build test-view tab only returns minimal
information on how the tests went. Am I missing something?
Thanks,
-Jay
On Oct 27, 11:11 pm, David Abrahams <d...@boost-consulting.com> wrote:
> http://bitten.edgewall.org/wiki/DataStoragehas some examples, but
> I've just ran thru the exercise myself. The only soln I found was to
> query on the underlying db itself (trac.db) for the bitten_report and
> bitten_report_item tables. The latter is just a K/V pair, so you can
> put any fields you want. Not really the way I would have done it, but
> extensible certainly.
AFAICT, the database schema doesn't tell me anything about the
required syntax of XML that is sent to the server as a report. Am I
missing something?
> Perhaps you can help me. Even though I now save a rich set of details
> on the tests, the bitten build test-view tab only returns minimal
> information on how the tests went. Am I missing something?
I don't know; I'm only just getting my feet wet here. I do wish
cmlenz would weigh in, since he knows the answers.
<fixture>bitten.tests.model.BuildConfigTestCase </fixture></report>
<name>test_config_update_name</name>
<file>bitten/tests/model.py</file>
<stdout>Renaming build configuration</stdout>
</test>
Actually, the database schema maps pretty directly to the XML. The
mapping is described here:
<http://bitten.edgewall.org/wiki/DataStorage#MappingXMLReportstoDatabaseTables
>
Now, the information you need for *specific* reports is a different
question, and isn't documented at all outside of the code. It really
needs to be documented, and help with that is greatly appreciated.
Cheers,
Chris
--
Christopher Lenz
cmlenz at gmx.de
http://www.cmlenz.net/
Agreed 100%. You've put together a great starting point (all correct
AFAICT) here, can you add it to the Wiki ("ReportFormats" or something)?
Thanks,
Which page? AFAIK most pages aren't locked down, and you can create
new pages without having an account.
Cheers,
I will say that all this is a weak point of Bitten (which I otherwise
love). There should be a more rich way to import rich test results and
display them on the build page.
Cheers,
-Jay
I agree this aspect is problematic. After I finally (cry) get 0.6 out
of the door, I'd like to revisit this whole story. The plan is vague,
but something along the lines of an added IReportDataExtractor
extension point, which would allow you to make a plugin on the Trac
side that could set up its own database tables, and store the
extracted data in those tables, as well as query those tables in the
summarizers and chart generators.
This extension point should also allow merging the data from builds of
the same revision for different target platforms. An important example
for this is the code coverage statistics when you have a code base
that follows different paths depending on platform. That's a case
that's currently handled rather badly.
It should also be possible to "compact" the database somehow, removing
detail information for old builds, to avoid the database growing ad
infinitum. So the report data extraction would probably differentiate
between data that is interesting in the long term (for example code
coverage percentage per module), and data that can safely be purged
(for example, per-line/statement coverage info).