Manual testcases check / indentation script

Javier P.L. chilicuil at ubuntu.com
Fri Feb 22 12:05:45 UTC 2013


Hi,

Recently I've started looking at the manual testcases[0], and I've noticed there
is no defined indentation (some have more spaces than others or have tabs), some
of them had syntax mistakes, I also noticed than the <dl> / <dt> / <dd> tags
weren't indented correctly by vim. So I wrote a little script that check both things.

./test_case_format testcase

It uses tidy to check for syntax errors, and a modified vim indentation file to
indent with 4 spaces by default.

<dt> In Home folder right click on a blank section and select New Document, Empty Document. Name the resulting file 'moveme.txt'</dt>
<dd>Empty document moveme.txt is created</dd>
<dd>Was the empty document moveme.txt created?</dd>
<dt>Create a directory called 'test'</dt>

<dt> In Home folder right click on a blank section and select New Document, Empty Document. Name the resulting file 'moveme.txt'</dt>
    <dd>Empty document moveme.txt is created</dd>
    <dd>Was the empty document moveme.txt created?</dd>
<dt>Create a directory called 'test'</dt>

https://raw.github.com/chilicuil/learn/master/sh/test_case_format

Cheers

[0] https://wiki.ubuntu.com/Testing/TestCaseFormat



More information about the Ubuntu-quality mailing list