gcode-mirror / google-highly-open-participation-drupal

Automatically exported from code.google.com/p/google-highly-open-participation-drupal
0 stars 0 forks source link

Write Simpletest tests for the blogapi module #138

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
One of the ways Drupal integrates with desktop applications is the 
implementation of various blogger APIs through blogapi module.

The Simpletest module provides a framework for running automated unit 
tests in Drupal. Unit testing involves taking a small portion of code, a 
unit, and subjecting it to programmatic tests to prove its correctness. 
This can be extremely useful to help insure that new code does not 
introduce bugs into existing functionality. Thus, having a full suite of 
unit tests for Drupal 6.x core functionality using the Simpletest module 
would be a major step forward for the project and would help insure that 
only high-quality code is committed. In addition to helping developers 
test their code, new tests for core Drupal functionality will be used for 
automated testing by http://testing.drupal.org.

For this task, you need to first install and familiarize yourself with the 
simpletest module (use the cvs HEAD version with Drupal HEAD/6.x RC):
http://drupal.org/project/simpletest
http://drupal.org/simpletest
http://www.lullabot.com/articles/introduction-unit-testing

The main work for this task is to write a small suite of tests to check 
the functionality of blogapi module, specifically:
* create, a post, check the recent posting list for it, edit and finally 
delete a post.
* Upload a file.
* get and set categories

You will need to call xmlrpc() and issue proper blogapi requests against 
the Drupal install itself. The supported methods can be found in 
blogapi_xmlrpc .

Proper validation of your new tests will ideally include changing the 
Drupal core code to break the tested functionality and then confirming 
that your tests report a failure.  Ideally, post each such change as a 
patch to help the reviewers.

This suite should be written as a single .test file and should achieve 
RTBC status in the Simpletest module issue queue.  Post files/patches to 
this issue: http://drupal.org/node/209146

Original issue reported on code.google.com by chx1...@gmail.com on 12 Jan 2008 at 7:20

GoogleCodeExporter commented 9 years ago
I claim this task.

Original comment by j.boomba...@gmail.com on 12 Jan 2008 at 9:49

GoogleCodeExporter commented 9 years ago
Ok, it's all yours.

Original comment by acli...@gmail.com on 12 Jan 2008 at 10:15

GoogleCodeExporter commented 9 years ago

Original comment by acli...@gmail.com on 12 Jan 2008 at 10:15

GoogleCodeExporter commented 9 years ago
I mark this closed because the test is nice and good -- blogapi is a bit broken 
but 
that's nothing to do with this task.

Original comment by chx1...@gmail.com on 17 Jan 2008 at 4:15

GoogleCodeExporter commented 9 years ago
Final copy.

Original comment by j.boomba...@gmail.com on 17 Jan 2008 at 11:07

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by acli...@gmail.com on 21 Jan 2008 at 4:04