New versions of test suite and coretest script

Published on and tagged with cakephp  testing

As my test suite (don’t confuse it with the official test suite which comes bundled with CakePHP) was based on bake2, it no longer worked with the removal of bake2 from the core. To fix that problem, I first tried to transform it to a shell script for the new command line infrastructure. Without luck. The way I wanted the test suite to work was not compatible with the way the command line infrastructure was designed for…

So I took the bake2 script and adapted it to the needs of the test suite. If you use the test suite that means the following for you:

  • apps.ini is now in the “testsuite” folder
  • to execute the test suite via command line you now have to use “php test.php app-alias” (from the “testsuite” folder)
  • to use the GUI you have to update the TestsController

That’s it. You can download the new version from the downloads section. If you want to know how to use the test suite, have a look at the introduction.

There is also a “new” (or, more precisely, a two-week old) version of the coretest script in the downloads section. This shell script allows you to run the core tests via command line. To use it, put the script to vendors/shells and execute it with:

cake coretest

Happy testing :)

2 comments baked

  • Nate

    “To fix that problem, I first tried to transform it to a shell script for the new command line infrastructure. Without luck.”

    Well…. we’re almost always on IRC… why don’t you just come on and ask? Also, as you know, bake2 was never a permanent solution. It was intended to be a replacement to bake at some point.

    I’m happy that most of the structure and concepts of bake2 have found their way into the new console shell system.

    “The way I wanted the test suite to work was not compatible with the way the command line infrastructure was designed for…”

    Again, just hop on IRC. Say something. Say anything. I think you’ll find that the community will derive a lot more value from your efforts if you try to work *with* us.

  • cakebaker

    @Nate: Well, I discussed with gwoo about the introduction of an alias mechanism like in bake2. But he thought that wouldn’t be needed with the availability of the “-app” parameter.

Bake a comment




(for code please use <code>...</code> [no escaping necessary])

© daniel hofstetter. Licensed under a Creative Commons License