Difference between revisions of "Unified Testing"

(Steps to get to DoneDone)
(Steps to get to DoneDone)
Line 21: Line 21:
 
* <s>Get the most recent version of the php Testing framework</s>
 
* <s>Get the most recent version of the php Testing framework</s>
 
* <s>Make it so that only files that end in _test.php get run</s> Few test files were just not for this framework. Deleted them.
 
* <s>Make it so that only files that end in _test.php get run</s> Few test files were just not for this framework. Deleted them.
 +
* Get at least one javascript test passing.
 
* Unit test one of our mediawiki php extensions.
 
* Unit test one of our mediawiki php extensions.
 
* Clean up TestHelper.php
 
* Clean up TestHelper.php

Revision as of 11:21, 20 January 2008

OurWork Edit-chalk-10bo12.png

What (summary)

To have a single testing engine that tests code for PHP, compost and javascript code.

Why this is important

Until now, we use rake test to test our compost code but we don't have any such framework for testing the PHP and javascript code. This does not let us write bug free php and javascript code, and don't let us refactor our code often. This testing framework would let us do exactly that.

DoneDone

  • proper permissions are required to be able to execute any of the au_web_services (logged-in sysop for our stuff)
  • au_web_services shows links to the main functional tasks that we perform (test, patrol, crm)
  • au_web_services/test is a web service that shows links to all the test suites you can run
  • au_web_services/test/XXX runs all the tests in the suite XXX and reports the results in a friendly manner
    • au_web_services/test/ruby
    • au_web_services/test/javascript
    • au_web_services/test/php
    • au_web_services/test/all executes all tests (javascript, php, and ruby) at all levels of abstraction (unit, functional, integration) reports the results in a friendly manner

Steps to get to DoneDone

  • Make au_web_services/test/ruby run all of our ruby tests and report the results in a friendly manner
  • refactor is_sysop to be available for all controllers
  • Get the most recent version of the php Testing framework
  • Make it so that only files that end in _test.php get run Few test files were just not for this framework. Deleted them.
  • Get at least one javascript test passing.
  • Unit test one of our mediawiki php extensions.
  • Clean up TestHelper.php
  • Make php_run_tests work for our live branch that tests all the test cases inside live directory.
  • Allow only sysops to run anything within the test controller
  • Find the TestHelper.php and the other code we were working on before
  • Report results as they come in (incrementally) rather than batching them and then reporting the results
  • Add test/javascript.html that tests all the tests for javascript code.


Retrieved from "http://aboutus.com/index.php?title=Unified_Testing&oldid=14518041"