On 06/22/2012 10:53 PM, Andrew Garrett wrote:
On Fri, Jun 22, 2012 at 7:44 AM, Chris McMahon
<cmcmahon(a)wikimedia.org>wrote;wrote:
On the QA front, this came up in a WMF discussion
recently, and I proposed
it as a Weekend Testing Americas session, but it would work equally well at
Wikimania, and it fits our goal of bringing in more community testing
nicely:
Speaking of QA, I'd love to participate in a test-writing-a-thon. Currently
I have no idea how to write tests for my code. It would be awesome if I
could learn that at Wikimania.
—Andrew
This might indeed be a good training session/topic for the pre-Wikimania
hackathon. We might be able to repurpose Chad Horohoe's testing
training from the fall of 2011 - a lecture on how to write tests,
walking attendees through the documentation and teaching them how to run
tests. Notes and audio are available:
https://www.mediawiki.org/wiki/NOLA_Hackathon/Sunday#Chad.27s_test_training
https://www.mediawiki.org/wiki/File:Git_notes_-_NOLA_Hackathon_2011.oga
"I'll find a simple function we still need a test for, and use it as
an example. I'll briefly touch on setting up PHPUnit (with the caveat
that *sometimes* it's harder than it should be, so ask if you need extra
help). Then dive into how to write the test."
You might also like skimming this category and re-filing/moving/creating
pages as relevant:
https://www.mediawiki.org/wiki/Category:Tutorials
--
Sumana Harihareswara
Engineering Community Manager
Wikimedia Foundation