October 21 - Testing Testing Trial

Events happening in the community are now at Drupal community events on www.drupal.org.
chachasikes's picture
Start: 
2009-10-21 19:00 - 22:00 America/Chicago
Organizers: 
Event type: 
User group meeting

This will be an informal gathering of drupal people who will work together to try to understand 'tests' and how to write them.

Where

Common Roots, www.commonrootscafe.com
2558 S Lyndale Ave
Minneapolis, MN 55405

When

Wednesday, October 21, 7:00 pm - 9:30pm
(and then of course we're taking zzolo out for bon voyage drinks. Interested others: rendezvous at common roots around 9:30pm to go out. location TBD.)

What to bring

You will need: a computer, code editor, some familiarity with drupal & PHP. You will probably also want a local webserver running.

We will probably be checking out drupal 7 cvs repositories - but don't worry if you can't do that stuff yet - that's the point of getting together to do these things. We can suggest programs you can install that will help that. And worst case scenario, we can just put recent Drupal 7 on a flash drive for you.

What would be *great* to bring

  • More information about testing. Read up about testing before coming. But again, don't stress out too much - the whole point of this meeting is to work together on something that sounds unpleasant, something we procrastinate about learning, something we do not do because we can't fathom how to integrate testing with our actual daily work life...

    So instead we'll get together, eat lemon bars and try to spend our time learning and at least making some progress to *clarify* testing.

  • URLs to some recent requests for tests in the Drupal issue queue. (Note: in my experience it can take *hours* to find an issue that you can actually work on in a short period of time. If you find some candidates, by all means post them on this thread.)
  • Here is the issue queue, with the word 'test' and 'Novice' tag: http://drupal.org/project/issues/search?text=test&projects=&assigned=&su...

What we can do

  • Demonstrate what we already know about tests in Drupal to each other. Spend some time reviewing the issue queue to find requests for tests and find a small projects.
  • Set up testing environments (http://drupal.org/node/28245) -- note, this is very similar to what you have to do to test patches. We can do this together, basically you get the bleeding edge version of Drupal 7 running locally - and then you can apply patches or tests to that.
  • Draft up some more help/documentation for this page: http://drupal.org/contribute/testing.

OK so again, please comment if you intend to come. And if you can't come but are interested in this - we shall meet again.
Probably in December.
And maybe we will be able to explain testing... :)

Comments

Sounds like fun. Pretty busy

eojthebrave's picture

Sounds like fun. Pretty busy this week so I'm not going to make any promises, but I'll plan on being there.

Links

chachasikes's picture

Here are some potentially helpful links related to Drupal Testing & testing in general

Official Documentation

http://drupal.org/simpletest
http://simpletest.sourceforge.net/en/unit_test_documentation.html
http://simpletest.org/api/

Drupal Specific Testing Introductions

http://www.lullabot.com/articles/drupal-module-developer-guide-simpletest
http://www.lullabot.com/articles/introduction-unit-testing
http://www.lullabot.com/blog/drupalcon-simpletest-and-future-test-driven...
http://cwgordon.com/how-to-write-automated-tests-for-drupal

More generalized simpletest articles

http://www.simpletest.org/en/unit_test_documentation.html
http://gtowey.blogspot.com/2009/10/simple-test-case-techiques.html
http://www.devpapers.com/article/303

Test Driven Development (TDD)

http://en.wikipedia.org/wiki/Test-driven_development
http://www.agiledata.org/essays/tdd.html

Books

I haven't read any of these books, but they all seem to offer a lot more information about testing & the process of software development

Test Driven Development: By Example http://my.safaribooksonline.com/0321146530
Refactoring: Improving the Design of Existing Code http://my.safaribooksonline.com/0201485672
Head First Software Development: http://my.safaribooksonline.com/9780596527358
Testing Extreme Programming http://my.safaribooksonline.com/0321113551
Extreme Programming Explained: Embrace Change, Second Edition http://my.safaribooksonline.com/0201485672
A Practical Guide to Testing Object-Oriented Software http://my.safaribooksonline.com/0201325640
xUnit Test Patterns: Refactoring Test Code http://my.safaribooksonline.com/9780131495050
Software Testing, Second Edition http://my.safaribooksonline.com/0672327988

Other kinds of testing

Again, I have no idea what the deal is (yet) with these - but since I think it's pretty easy for people who build Drupal sites to think about testing theme code (and run away screaming with good reason) - it might be worth it to talk about browser testing. Especially what/how we can test Javascript.

JUnit http://junit.sourceforge.net/

JSUnit http://www.jsunit.net/ "JsUnit is a Unit Testing framework for client-side (in-browser) JavaScript. It is essentially a port of JUnit to JavaScript. Also included is a platform for automating the execution of tests on multiple browsers and mutiple machines running different OSs. Its development began in January 2001."

W3C DOM testing: http://www.w3.org/DOM/Test/

Automated Browser Testing with Selenium: http://blog.testlabs.com/2009/07/automated-cross-browser-testing-with_17...
Selenium: http://seleniumhq.org/
Selenium Intro: http://blog.testlabs.com/2009/03/introduction-to-web-testing-framework.html

Ajax testing: http://www.jroller.com/verySimpleSolutions/entry/sjax_ajax_option_for_au...

Firefox Plugins adjunctly related to testing

Besides WebDeveloper, FireBug & Greasemonkey: here are some other firefox plugins that might come in handy in testing (not necessarily writing Tests for Drupal)
FoxUnit: http://www.allpeers.com/blog/2005/09/28/foxunit-unit-test-framework-for-...
iMacros: https://addons.mozilla.org/en-US/firefox/addon/3863
Total Validator 6.0.2: https://addons.mozilla.org/en-US/firefox/addon/2318
CSS Validator: https://addons.mozilla.org/en-US/firefox/addon/2289?src=reco
JavaScript Deobfuscator 1.5.4: https://addons.mozilla.org/en-US/firefox/addon/10345?src=reco

Wow

samirnassar's picture

Thanks for the resources. One-stop shop till you test then drop.

fun meeting

chachasikes's picture

hey everyone - so 5 of us got together and discussed tests...and also discussed organizing a more planned out testing workshop in mid-december. more on that later.

Lullabot just posted a short

eojthebrave's picture

Lullabot just posted a short podcast interview with boombatower talking about testing, what kind of testing Drupal does, code coverage, and that kind of thing. Worth a listen.

http://www.lullabot.com/drupal-voices/drupal-voices-66-jimmy-berry-drupa...

Follow up

chachasikes's picture

I just posted this discussion thread
http://groups.drupal.org/node/37774

Please comment on that if you still want to be part of the testing event. Thanks!

Twin Cities

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: