Manual testcases check / indentation script
Nicholas Skaggs
nicholas.skaggs at canonical.com
Fri Feb 22 15:42:07 UTC 2013
This is wonderful! Thank you Javier!
Your right in that my initial quick conversion was a bit dirty, and of
course, we're all human so we make mistakes. Would you care to update
the
https://wiki.ubuntu.com/QATeam/ContributingTestcases/ManualStyleGuide
page with this information? It's nice to have your merge fixing
everything, but we'll want to incorporate your tidy script into future
submissions to make sure we keep things neat ;-)
Nicholas
On 02/22/2013 07:05 AM, Javier P.L. wrote:
> 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