Unified Testing

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.
  • Clean out skins/common javascript files that are not being used anymore.
  • Inject an arbitrary javascript file at the end of our compost javascript view that will be run only when the document finishes loading.
  • Get at least one javascript test passing.
  • cleanup and commit
  • make au_test_controller/test/all work
  • 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.


Important

  • Test both mediawiki javascript(./mediawiki/wiki/skins/support/javascript/) and compost javascript(/compost/public/javascripts/) from compost.


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