Template:Test results: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 18: Line 18:
{| border="0" cellpadding="4" cellspacing="4"
{| border="0" cellpadding="4" cellspacing="4"
</noinclude>
</noinclude>
{| class="wikitable"
! Release
! Stream
! Build
! Pass/Fail
! Trac Ticket(s)
! Comment(s)
|-
|-
| [[Software release::{{{testresult_release|}}}]]
| [[Software release::{{{testresult_release|}}}]]
Line 25: Line 32:
| {{#arraymap:{{{testresult_tickets|}}}|,|x|[[Trac bug number::x]]}}
| {{#arraymap:{{{testresult_tickets|}}}|,|x|[[Trac bug number::x]]}}
| [[Comments::{{{testresult_comments|}}}]]
| [[Comments::{{{testresult_comments|}}}]]
|}
<noinclude>
<noinclude>
|}
|}

Revision as of 00:41, 6 August 2008

This is the 'Test Results' template. It should be called with the following parameters:

{{Test Results
|testresult_release=
|testresult_stream=
|testresult_build=a number
|testresult_passfail=Pass or Fail
|testresult_tickets=comma-separated Trac numbers
|testresult_comments=
}}

Edit the page and preview to see the template text.

It makes semantic annotations for these fields, see e.g. Property:PassFail.

Release Stream Build Pass/Fail Trac Ticket(s) Comment(s)
Software release:: Build stream:: Build number:: PassFail:: ,|x|Trac bug number::x}} Comments::

This template creates the wiki markup text for a row in a table, so the page invoking it must surround it with wiki markup for table top and bottom; see e.g. TestResults 8.2.0.

Special:AddPage/Test_Results prompts you to fill in a form that will add one of these to a page, however because the template has to sit inside a table, that seems to garble the page.