Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Vote: use QUnit API or Unit Testing/A
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  17 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kevin Dangoor  
View profile  
 More options Oct 9 2009, 10:00 am
From: Kevin Dangoor <dang...@gmail.com>
Date: Fri, 9 Oct 2009 10:00:59 -0400
Local: Fri, Oct 9 2009 10:00 am
Subject: Vote: use QUnit API or Unit Testing/A

I'd like to do a general vote here, rather than a specific vote... by which
I mean that both API directions can still undergo modification as we finish
the specs. I just want to gauge the interest level in adopting QUnit's API.

Please make a choice between:

1. Adopt an API substantially the same as QUnit's
http://docs.jquery.com/QUnit (note that this is API, not implementation and
also note that we can extend this API easier than we can change it)

2. Adopt an API substantially the same as Unit Testing/A
http://wiki.commonjs.org/wiki/Unit_Testing/A  (and there is some interest in
extending this to allow for assertion failures to be logged rather than to
halt the test run)

One final note about this: the existence of this API does not keep anyone
from using an API that they already have or like. We're choosing the API
that any CommonJS compliance tests would use, but otherwise no one else has
to use it. My guess is that the API chosen here *will* be used by more than
just CommonJS compliance tests, though.

Kevin

--
Kevin Dangoor

work: http://labs.mozilla.com/
email: k...@blazingthings.com
blog: http://www.BlueSkyOnMars.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hannes Wallnoefer  
View profile  
 More options Oct 9 2009, 10:14 am
From: Hannes Wallnoefer <hann...@gmail.com>
Date: Fri, 9 Oct 2009 16:14:26 +0200
Local: Fri, Oct 9 2009 10:14 am
Subject: Re: [CommonJS] Vote: use QUnit API or Unit Testing/A
2009/10/9 Kevin Dangoor <dang...@gmail.com>:

> Please make a choice between:

> 1. Adopt an API substantially the same as QUnit's
> http://docs.jquery.com/QUnit (note that this is API, not implementation and
> also note that we can extend this API easier than we can change it)

> 2. Adopt an API substantially the same as Unit Testing/A
> http://wiki.commonjs.org/wiki/Unit_Testing/A  (and there is some interest in
> extending this to allow for assertion failures to be logged rather than to
> halt the test run)

2.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Friesen  
View profile  
 More options Oct 9 2009, 10:20 am
From: Daniel Friesen <nadir.seen.f...@gmail.com>
Date: Fri, 09 Oct 2009 07:20:52 -0700
Local: Fri, Oct 9 2009 10:20 am
Subject: Re: [CommonJS] Vote: use QUnit API or Unit Testing/A

I have a 3rd one.

3. Use doctest
<https://developer.mozilla.org/en/New_in_Rhino_1.7R2#Doctest> to write
our tests.
It's easy to use. Doesn't need any discussion over what api to use cause
there is no API. Implementation is actually quite a simple addition to a
shell. Rhino already has it builtin so all Rhino implementations already
have access to it. I already am using it in MonkeyScript for some
Binary/C tests.

~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charles Jolley  
View profile  
 More options Oct 9 2009, 11:30 am
From: Charles Jolley <cjol...@gmail.com>
Date: Fri, 9 Oct 2009 08:30:47 -0700 (PDT)
Local: Fri, Oct 9 2009 11:30 am
Subject: Re: Vote: use QUnit API or Unit Testing/A
1 (possibly taking Resig's proposed changes re: equal and equiv to
make it more like the  Unit_Testing/A proposal)

On Oct 9, 7:00 am, Kevin Dangoor <dang...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Resig  
View profile  
 More options Oct 9 2009, 11:44 am
From: John Resig <jere...@gmail.com>
Date: Fri, 9 Oct 2009 11:44:29 -0400
Local: Fri, Oct 9 2009 11:44 am
Subject: Re: [CommonJS] Vote: use QUnit API or Unit Testing/A
I vote for #1.

--John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dean Landolt  
View profile  
 More options Oct 9 2009, 11:57 am
From: Dean Landolt <d...@deanlandolt.com>
Date: Fri, 9 Oct 2009 11:57:39 -0400
Local: Fri, Oct 9 2009 11:57 am
Subject: Re: [CommonJS] Re: Vote: use QUnit API or Unit Testing/A

On Fri, Oct 9, 2009 at 11:30 AM, Charles Jolley <cjol...@gmail.com> wrote:

> 1 (possibly taking Resig's proposed changes re: equal and equiv to
> make it more like the  Unit_Testing/A proposal)

1, with the same stipulation.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kris Zyp  
View profile  
 More options Oct 9 2009, 11:58 am
From: Kris Zyp <kris...@gmail.com>
Date: Fri, 09 Oct 2009 09:58:03 -0600
Local: Fri, Oct 9 2009 11:58 am
Subject: Re: [CommonJS] Vote: use QUnit API or Unit Testing/A

I don't have a strong preference, but if there is an async support (like
QUnit has), I would like to keep the consistency and simplicity of using
promises rather than proliferation of extra APIs for async causes (I
know, this is what I always harp on). Dojo has done that with its
testing framework, and the consistency that it provide is really nice,
extra async APIs are not needed to do asynchronous actions.
Kris

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Dangoor  
View profile  
 More options Oct 9 2009, 12:16 pm
From: Kevin Dangoor <dang...@gmail.com>
Date: Fri, 9 Oct 2009 12:16:50 -0400
Local: Fri, Oct 9 2009 12:16 pm
Subject: Re: [CommonJS] Re: Vote: use QUnit API or Unit Testing/A

On Fri, Oct 9, 2009 at 11:58 AM, Kris Zyp <kris...@gmail.com> wrote:
> I don't have a strong preference, but if there is an async support (like
> QUnit has), I would like to keep the consistency and simplicity of using
> promises rather than proliferation of extra APIs for async causes (I
> know, this is what I always harp on). Dojo has done that with its
> testing framework, and the consistency that it provide is really nice,
> extra async APIs are not needed to do asynchronous actions.

I agree, and let's just say that async is not a part of the proposal at this
time...

Kevin

--
Kevin Dangoor

work: http://labs.mozilla.com/
email: k...@blazingthings.com
blog: http://www.BlueSkyOnMars.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Resig  
View profile  
 More options Oct 9 2009, 1:33 pm
From: John Resig <jere...@gmail.com>
Date: Fri, 9 Oct 2009 13:33:57 -0400
Local: Fri, Oct 9 2009 1:33 pm
Subject: Re: [CommonJS] Vote: use QUnit API or Unit Testing/A
I should mention that I'm fine with #1 with the stipulation, as well
(equal is A === B, equiv is deep recursive equivalence).

--John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Zumbrunn  
View profile  
 More options Oct 9 2009, 2:33 pm
From: Chris Zumbrunn <chris.zumbr...@gmail.com>
Date: Fri, 9 Oct 2009 20:33:57 +0200
Local: Fri, Oct 9 2009 2:33 pm
Subject: Re: [CommonJS] Re: Vote: use QUnit API or Unit Testing/A

Given the two choices, 2.

The way QUnit currently uses equal is borked in my opinion. So,
replacing same with equiv doesn't help.

If we could agree on "equivalent" for equivalence assertion and
"identical" for identity assertion, we could probably find a
compatible API :-)

Problem is, even for me that is getting to be a bit verbose.

Maybe assert.is and assert.eq is better after all.

Problem is, I really disliked assert.ne.

assert.eq, assert.uneq, assert.is, assert.isnt ?

Chris

Chris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kris Kowal  
View profile  
 More options Oct 9 2009, 2:48 pm
From: Kris Kowal <cowbertvon...@gmail.com>
Date: Fri, 9 Oct 2009 11:48:35 -0700
Local: Fri, Oct 9 2009 2:48 pm
Subject: Re: [CommonJS] Vote: use QUnit API or Unit Testing/A

On Fri, Oct 9, 2009 at 7:00 AM, Kevin Dangoor <dang...@gmail.com> wrote:
> I'd like to do a general vote here, rather than a specific vote... by which
> I mean that both API directions can still undergo modification as we finish
> the specs. I just want to gauge the interest level in adopting QUnit's API.

> Please make a choice between:

> 1. Adopt an API substantially the same as QUnit's
> http://docs.jquery.com/QUnit (note that this is API, not implementation and
> also note that we can extend this API easier than we can change it)

> 2. Adopt an API substantially the same as Unit Testing/A
> http://wiki.commonjs.org/wiki/Unit_Testing/A  (and there is some interest in
> extending this to allow for assertion failures to be logged rather than to
> halt the test run)

1 + nomenclature migration - global module accumulation + punt async

or

2 + common nomenclature + eventally a DSL to support 1 + punt async

I'd love to have interoperability with QUnit on the unit test level
with the given specification, but to do this in a modular fashion (in
the CommonJS modules sense), unit tests would have to be in a test DSL
that injects the QUnit API into each test script.  The bike-shedding
on the method names needs to stop, but we are all over the map.  I
think we'll ultimately have to agree to support migration to new,
common names in all of our API's, which I do not think would be
onerous even for QUnit, as long as none of the new names are
contradictory.  To converge on names, I think we'll have to do fancy
instant run-off voting.

The eventual DSL support requires extensions to the CommonJS module
standard, which I think more than one user has called for, namely the
standardization of loader interfaces, like
require.loader.load(id)(injection).

Summarily, my vote is more like 2 than 1, with emphasis on convergence.

Kris Kowal


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ash Berlin  
View profile  
 More options Oct 9 2009, 2:54 pm
From: Ash Berlin <ash_flusspf...@firemirror.com>
Date: Fri, 9 Oct 2009 19:54:18 +0100
Local: Fri, Oct 9 2009 2:54 pm
Subject: Re: [CommonJS] Re: Vote: use QUnit API or Unit Testing/A

On 9 Oct 2009, at 19:48, Kris Kowal wrote:

1 unreservedly from me.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
chris thatcher  
View profile  
 More options Oct 9 2009, 1:54 pm
From: chris thatcher <thatcher.christop...@gmail.com>
Date: Fri, 9 Oct 2009 13:54:26 -0400
Local: Fri, Oct 9 2009 1:54 pm
Subject: Re: [CommonJS] Re: Vote: use QUnit API or Unit Testing/A

+1 for #1

PS. I've always been a little confused about the definition of 'deep
recursive' because it's not immediately clear if it's inclusive of arrays
though apparently includes objects properties.  Probably I've missed some
concept that makes it obvious why array's are not included or I'm
misunderstanding in general the difference described.

Thatcher

--
Christopher Thatcher

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Robinson  
View profile  
 More options Oct 9 2009, 3:44 pm
From: Tom Robinson <tlrobin...@gmail.com>
Date: Fri, 9 Oct 2009 12:44:24 -0700
Local: Fri, Oct 9 2009 3:44 pm
Subject: Re: [CommonJS] Vote: use QUnit API or Unit Testing/A
2

On Oct 9, 2009, at 7:00 AM, Kevin Dangoor wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Resig  
View profile  
 More options Oct 9 2009, 4:03 pm
From: John Resig <jere...@gmail.com>
Date: Fri, 9 Oct 2009 16:03:13 -0400
Local: Fri, Oct 9 2009 4:03 pm
Subject: Re: [CommonJS] Re: Vote: use QUnit API or Unit Testing/A
In jQuery's implementation it includes arrays as well. If the
properties are === then they're fine, otherwise we check their type,
if they're the same type then we check the properties - works for both
objects and arrays.

--John

On Fri, Oct 9, 2009 at 1:54 PM, chris thatcher


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kris Kowal  
View profile  
 More options Oct 9 2009, 4:31 pm
From: Kris Kowal <cowbertvon...@gmail.com>
Date: Fri, 9 Oct 2009 13:31:17 -0700
Local: Fri, Oct 9 2009 4:31 pm
Subject: Re: [CommonJS] Re: Vote: use QUnit API or Unit Testing/A
On Fri, Oct 9, 2009 at 10:54 AM, chris thatcher

<thatcher.christop...@gmail.com> wrote:
> PS. I've always been a little confused about the definition of 'deep
> recursive' because it's not immediately clear if it's inclusive of arrays
> though apparently includes objects properties.  Probably I've missed some
> concept that makes it obvious why array's are not included or I'm
> misunderstanding in general the difference described.

One version of the specification treated Array as a special case of
Object, but it was pointed out that checking the values of respective
indicies was insufficient because you can also add properties to
arrays.  So, that line was removed and the line about comparing
objects by their respective owned properties catches the array case.

Kris Kowal


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexandre Morgaut  
View profile  
 More options Oct 12 2009, 4:18 am
From: Alexandre Morgaut <Alexandre.Morg...@4d.fr>
Date: Mon, 12 Oct 2009 01:18:39 -0700 (PDT)
Local: Mon, Oct 12 2009 4:18 am
Subject: Re: Vote: use QUnit API or Unit Testing/A
+1 for #1

or eventually part of #3
not sure we have to impose one API as some different solutions exists
on client side and might be interesting to adapt on server side for
those already using it.
I said "part of #3" because Rhino is not the only Server Side
JavaScript engine ;-)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »