MochiKit.Test and SimpleTest.js

2 views
Skip to first unread message

Per Cederberg

unread,
Oct 8, 2008, 9:46:10 AM10/8/08
to MochiKit
While fixing some stuff in MochiKit.Logging, I happened to notice the
existance of a MochiKit.Test package... It seems pretty similar to the
SimpleTest.js file used for powering the normal test suite when run
inside a browser, but it seems to only be used when standalone testing
is performed (e.g. from the scripts/rhinomochi.js file).

But there are some subtle differences. For example, the "is" function
uses == in SimpleTest, but is based on compare() in MochiKit.Test. So
that kind of breaks some of my tests...

Anyone knows why we seem to have two test engines? Or what the
relevant differences are?

Cheers,

/Per

PS. I just discovered that Google Groups silently dropped all my
emails that used another sender address, so I'm currently resending
all my recent postings. Hence the sudden email bombing...

Leo Soto M.

unread,
Oct 8, 2008, 10:20:22 AM10/8/08
to Per Cederberg, MochiKit
On Wed, Oct 8, 2008 at 9:46 AM, Per Cederberg <cede...@gmail.com> wrote:
>
> While fixing some stuff in MochiKit.Logging, I happened to notice the
> existance of a MochiKit.Test package... It seems pretty similar to the
> SimpleTest.js file used for powering the normal test suite when run
> inside a browser, but it seems to only be used when standalone testing
> is performed (e.g. from the scripts/rhinomochi.js file).
>
> But there are some subtle differences. For example, the "is" function
> uses == in SimpleTest, but is based on compare() in MochiKit.Test. So
> that kind of breaks some of my tests...
>
> Anyone knows why we seem to have two test engines? Or what the
> relevant differences are?

On <http://groups.google.com/group/mochikit/browse_thread/thread/e55df230ee3ef897>
is the thread about the inclusion of SimpleTest into MochiKit. Looks
like the idea always was to merge it with MochiKit.Test, but nobody
had the time to do it.

--
Leo Soto M.
http://blog.leosoto.com

Per Cederberg

unread,
Oct 8, 2008, 10:57:59 AM10/8/08
to MochiKit
Ok. I added an enhancement ticket so that I won't forget about it:

http://trac.mochikit.com/ticket/320

Thanks for the info!

/Per

Reply all
Reply to author
Forward
0 new messages