ActiveState Powered by ActiveState

ActiveState Community


Simpletest instead of PHPUnit in 4.3?

Posted by weitzman on 2008-03-12 18:22
OS: All / Any

The Drupal project and many others use simpletest instead of PHPUnit. Any chance we can swap that ito Komodo unit test using some hidden pref? If not, please consider this a feature request.

jeffg | Wed, 2008-03-12 21:11

We chose to initially ship 4.3 with support for some test frameworks, and have also made it possible to extend the Unit test capability to support additional Unit test systems. Supporting simpletest should be relatively simple on top of the current implementation either by us doing it in the future, or by someone form the community stepping forward in the near term.

Admittedly, we do need to document how this will work, but work on a 4.3.1 update to fix some bugs is the current priority. When I get back in the office ( I'm at a conference currently ) I'll dig into how to support simpletest and post back here.

--
JeffG

cabbiepete | Thu, 2008-03-20 10:31

Just wondering if there was an update for those docs JeffG?

Pete
cabbiepete

ericp | Thu, 2008-03-20 10:59

We've been working on a bug-fix release for 4.3.1. For sure my focus on the next round on the unit-testing framework will be on its extensiblity.

weitzman | Sun, 2008-03-30 06:53

Any progress Jeff? I poked briefly around the Komodo package but didn't find anything related to testing.

I know you guys just pushed out 4.3.1 so i will try to be patient :)

jeffg | Mon, 2008-03-31 11:05

I have to apologize, I was under the impression that 4.31 would include some hooks for adding test framework support, but it didn't happen. It is still in the cards likely for 4.4, and i personally would also like to see simpletest supported out of the box, similar to how PHPUnit is now. So, sorry for the confusion. =/

--
JeffG

cabbiepete | Tue, 2008-04-01 21:58

That's a bit of a bummer, anything we could do to help the situation? I had been thinking about attempting an extension to do this but when I heard there was already integration for unit testing in the next version I figured it wasn't worth it.

Let me know if that would be useful I would be happy to submit the code back if I get
it all working.

Pete
cabbiepete

ax | Wed, 2008-06-25 02:40

now that in 4.4, different unit test frameworks can be integrated into komodo, it would be very nice to see a SimpleTest extension. as activestate uses Drupal, wouldn't it make sense to ship this as part of komodo? :) thanks for all efforts!

jeffg | Wed, 2008-06-25 08:35

I've done some investigation into this and hope to release an extension soon based on Eric's nose example. It'll come, it just wasn't possible to fit it in for 4.4 ( or necessary, as we can implement it as an extension ).

--
JeffG

ax | Sun, 2008-06-29 10:25

very nice! waiting eagerly for any outcome.

ax

moshe weitzman@... | Sun, 2008-06-29 16:39

A recent patch to Drupal just ripped out all of the simpletest library. At this point, we are running our own unit testing library. It is heavily inspired by simpletest, and thats about it. Hopefully someone can write the komodo integration. i'm a bit daunted by non-drupal code.

jeffg | Sun, 2008-06-29 22:43

Yeah I read that; I think the logical first step is to write a generic SimpleTest implementation ( because lots of people use it besides Drupallers ) and then adapt that to chx's perversions, er implementation. My starting point is Jason Sweat's terminal color output plug-in for ST as an example of how to override the output.

--
JeffG

-->