No subject


Sat Apr 15 14:32:53 EDT 2006


p
stuff) it looks like it's similar to SpinderMonkey/rhino in that you can
define global/context objects on the fly allowing a unified testing base?

This is really cool Bob, thanks for sharing what you have so far! Is it eve=
n
concievable that we could write unit tests that are able to test libraries =
/
"widgets" in their full environment glory? I dare not ask :) Exciting
possibilities just the same...

On 5/16/06, Bob Ippolito <bob at redivi.com> wrote:
>
> Actually cscript.exe is the command-line version. But yeah, it solves thi=
s
> problem.  I just got a subset of the MochiKit tests running under
> cscript.exe.
>
> http://svn.mochikit.com/mochikit/trunk/scripts/jscriptmochi.js
>
> The same subset also runs under SpiderMonkey (probably more interesting
> than Rhino results):
>
> http://svn.mochikit.com/mochikit/trunk/scripts/spidermochi.js
>
> -bob
>
> On May 16, 2006, at 2:15 PM, Jesse Kuhnert wrote:
>
> Is it? I had no idea. I haven't done any windows programming for a while
> but might be down for it if it solves this problem.
>
> This brings up another "issue" which I was thinking about last night, in
> that in almost any situation cross-browser testing means cross-platform
> testing (unless you are ~lucky~ enough to be working in windows already :=
)
> ).. One particular unit testing library that I'm very fond of, TestNG,
> provides a distributed mechanism for running unit tests. I've not used it
> but from looking at the parameters it provides I don't think it's very
> complicated and requires only a particular port to be opened on a box
> somewhere.
>
> It could never be something available for public consumption, but it
> wouldn't be impossible to have a sort of dedicated windows box sitting
> around somewhere to run these windows specific unit tests for dojo
> committers ~only~.
>
> Of course you'll still have to find a way to open up windows either way
> the second one of the tests fails, but it's something to think about.
>
> Is wscript.exe command line input > output driven or is there a dll
> companion that can be loaded up and worked with pragmatically?
>
> On 5/16/06, Bob Ippolito <bob at redivi.com> wrote:
> >
> > Why wouldn't wscript.exe be a good enough Rhino substitute to test
> > JScript?
> >
> > -bob
> >
> > On May 16, 2006, at 6:19 AM, Jesse Kuhnert wrote:
> >
> > That sounds like a great idea.
> >
> > The tacos devs have been creating selenium based unit tests that they
> > run in various browsers to assert whatever they are testing. Knowing th=
e
> > format somewhat I don't think it would be very hard at all to create
> > something that generated a quick "run set" of tests for the js files to=
 live
> > in that could then all be run through your browser with a couple easy
> > clicks.
> >
> > It's not perfect, but until IE gives us something comparable to rhino
> > we'll be stuck with imperfection for a long time...It gets the job done=
.
> >
> >
> > On 5/16/06, Alex Russell <alex at dojotoolkit.org> wrote:
> > >
> > > So today the test system creates a top-level testRunner.js file and
> > > just
> > > runs rhino over that. We could easily generate a similar HTML test
> > > runner.
> > >
> > > Would that solve the problem?
> > >
> > > Regards
> > >
> > > On Monday 15 May 2006 9:03 pm, Brian Douglas Skinner wrote:
> > > > For the non-UI Dojo code, like dojo.lang, is it good to sometimes
> > > run
> > > > the unit tests in Firefox and IE, or is it enough just to make sure
> > > > the unit tests all pass when you run them using ant/rhino?
> > > >
> > > > In one of the messages on the dojo-checkins list last week (see
> > > > below), I noticed that a dozen old test_XXX.html files had been
> > > > deleted. Back when I was working on dojo.lang and dojo.uuid, I used
> > > > the test_uuid.html and test_lang.html files to run the unit tests i=
n
> > > > IE and Firefox as well as ant/rhino before I did a commit.
> > >
> > > --
> > > Alex Russell
> > > alex at dojotoolkit.org BE03 E88D EABB 2116 CC49 8259 CF78 E242 59C3 972=
3
> > >
> > >
> > > _______________________________________________
> > > dojo-contributors mailing list
> > > dojo-contributors at dojotoolkit.org
> > > http://dojotoolkit.org/mailman/listinfo/dojo-contributors
> > >
> > >
> > >
> > >
> >
> >
> > --
> > Jesse Kuhnert
> > Tacos/Tapestry, team member/developer
> >
> > Open source based consulting work centered around
> > dojo/tapestry/tacos/hivemind.__________________________________________=
_____
> > dojo-contributors mailing list
> > dojo-contributors at dojotoolkit.org
> > http://dojotoolkit.org/mailman/listinfo/dojo-contributors
> >
> >
> >
> > _______________________________________________
> > dojo-contributors mailing list
> > dojo-contributors at dojotoolkit.org
> > http://dojotoolkit.org/mailman/listinfo/dojo-contributors
> >
> >
> >
>
>
> --
> Jesse Kuhnert
> Tacos/Tapestry, team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind.
> _______________________________________________
> dojo-contributors mailing list
> dojo-contributors at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-contributors
>
>
>
> _______________________________________________
> dojo-contributors mailing list
> dojo-contributors at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-contributors
>
>
>


--=20
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.

------=_Part_66820_17422639.1147784752326
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Ack! Wow that's awesome :) <br><br>I just dug this up with a quick google s=
earch:<br><br><br>
var ieo =3D WScript.CreateObject(&quot;InternetExplorer.Application&quot;);=
<br>
// ieo.visible =3D 1;<br>
ieo.navigate(&quot;<a href=3D"http://www.microsoft.com">http://www.microsof=
t.com</a>&quot;);<br>
while (ieo.Busy) { WScript.Sleep(10);}  // wait for load<br>
var doc =3D ieo.document;<br>
// show the contents of the &lt;title&gt; tag<br>
WScript.Echo(doc.getElementsByTagName(&quot;title&quot;)(0).innerText);<br>
ieo.Quit();<br>
WScript.Quit(0);<br><br>So we ~can~ actually create an instance of IE on th=
e fly, via library calls :) <br><br>From looking at the little amount of WS=
cript I have (and your test bootstrap stuff) it looks like it's similar to =
SpinderMonkey/rhino in that you can define global/context objects on the fl=
y allowing a unified testing base?=20
<br><br>This is really cool Bob, thanks for sharing what you have so far! I=
s it even concievable that we could write unit tests that are able to test =
libraries / &quot;widgets&quot; in their full environment glory? I dare not=
 ask :) Exciting possibilities just the same...
<br><br><div><span class=3D"gmail_quote">On 5/16/06, <b class=3D"gmail_send=
ername">Bob Ippolito</b> &lt;<a href=3D"mailto:bob at redivi.com">bob at redivi.c=
om</a>&gt; wrote:</span><blockquote class=3D"gmail_quote" style=3D"border-l=
eft: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:=
 1ex;">
<div><div style=3D""><div>Actually cscript.exe is the command-line version.=
 But yeah, it solves this problem.&nbsp; I just got a subset of the MochiKi=
t tests running under cscript.exe.</div><div><br></div><div><a href=3D"http=
://svn.mochikit.com/mochikit/trunk/scripts/jscriptmochi.js" target=3D"_blan=
k" onclick=3D"return top.js.OpenExtLink(window,event,this)">
http://svn.mochikit.com/mochikit/trunk/scripts/jscriptmochi.js</a></div><di=
v><br></div><div>The same subset also runs under SpiderMonkey (probably mor=
e interesting than Rhino results):</div><div><br></div><div><a href=3D"http=
://svn.mochikit.com/mochikit/trunk/scripts/spidermochi.js" target=3D"_blank=
" onclick=3D"return top.js.OpenExtLink(window,event,this)">
http://svn.mochikit.com/mochikit/trunk/scripts/spidermochi.js</a></div></di=
v><div><span class=3D"sg"><div><br></div><div>-bob</div></span></div><div><=
span class=3D"e" id=3D"q_10b3d3ea9cd99849_2"><br><div><div>On May 16, 2006,=
 at 2:15 PM, Jesse Kuhnert wrote:
</div><br><blockquote type=3D"cite">Is it? I had no idea. I haven't done an=
y windows programming for a while but might be down for it if it solves thi=
s problem. <br><br>This brings up another &quot;issue&quot; which I was thi=
nking about last night, in that in almost any situation cross-browser testi=
ng means cross-platform testing (unless you are ~lucky~ enough to be workin=
g in windows already :) ).. One particular unit testing library that I'm ve=
ry fond of, TestNG, provides a distributed mechanism for running unit tests=
. I've not used it but from looking at the parameters it provides I don't t=
hink it's very complicated and requires only a particular port to be opened=
 on a box somewhere.=20
<br><br>It could never be something available for public consumption, but i=
t wouldn't be impossible to have a sort of dedicated windows box sitting ar=
ound somewhere to run these windows specific unit tests for dojo committers=
 ~only~.=20
<br><br>Of course you'll still have to find a way to open up windows either=
 way the second one of the tests fails, but it's something to think about. =
<br><br>Is wscript.exe command line input &gt; output driven or is there a =
dll companion that can be loaded up and worked with pragmatically?=20
<br><br><div><span class=3D"gmail_quote">On 5/16/06, <b class=3D"gmail_send=
ername">Bob Ippolito</b> &lt;<a href=3D"mailto:bob at redivi.com" target=3D"_b=
lank" onclick=3D"return top.js.OpenExtLink(window,event,this)">bob at redivi.c=
om</a>
&gt; wrote:</span><blockquote class=3D"gmail_quote" style=3D"border-left: 1=
px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"=
> <div><div><div>Why wouldn't wscript.exe be a good enough Rhino substitute=
 to test JScript?
</div></div><div><span><div><br></div><div>-bob</div></span></div><div><spa=
n> <div><br><div><div>On May 16, 2006, at 6:19 AM, Jesse Kuhnert wrote:</di=
v><br><blockquote type=3D"cite">That sounds like a great idea. <br><br>The =
tacos devs have been creating selenium based unit tests that they run in va=
rious browsers to assert whatever they are testing. Knowing the format some=
what I don't think it would be very hard at all to create something that ge=
nerated a quick &quot;run set&quot; of tests for the js files to live in th=
at could then all be run through your browser with a couple easy clicks.=20
<br><br>It's not perfect, but until IE gives us something comparable to rhi=
no we'll be stuck with imperfection for a long time...It gets the job done.=
<br><br><br><div><span class=3D"gmail_quote">On 5/16/06, <b class=3D"gmail_=
sendername">
 Alex Russell</b> &lt;<a href=3D"mailto:alex at dojotoolkit.org" target=3D"_bl=
ank" onclick=3D"return top.js.OpenExtLink(window,event,this)">alex at dojotool=
kit.org</a>&gt; wrote:</span><blockquote class=3D"gmail_quote" style=3D"bor=
der-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-=
left: 1ex;">
 So today the test system creates a top-level testRunner.js file and just<b=
r>runs rhino over that. We could easily generate a similar HTML test<br>run=
ner.<br><br>Would that solve the problem?<br><br>Regards<br><br>On Monday 1=
5 May 2006 9:03 pm, Brian Douglas Skinner wrote:=20
<br>&gt; For the non-UI Dojo code, like dojo.lang, is it good to sometimes =
run<br>&gt; the unit tests in Firefox and IE, or is it enough just to make =
sure<br>&gt; the unit tests all pass when you run them using ant/rhino?=20
<br>&gt;<br>&gt; In one of the messages on the dojo-checkins list last week=
 (see<br>&gt; below), I noticed that a dozen old test_XXX.html files had be=
en<br>&gt; deleted. Back when I was working on dojo.lang and dojo.uuid, I u=
sed=20
<br>&gt; the test_uuid.html and test_lang.html files to run the unit tests =
in<br>&gt; IE and Firefox as well as ant/rhino before I did a commit.<br><b=
r>--<br>Alex Russell<br><a href=3D"mailto:alex at dojotoolkit.org" target=3D"_=
blank" onclick=3D"return top.js.OpenExtLink(window,event,this)">
 alex at dojotoolkit.org </a> BE03 E88D EABB 2116 CC49 8259 CF78 E242 59C3 972=
3<br><br><br>_______________________________________________<br>dojo-contri=
butors mailing list<br><a href=3D"mailto:dojo-contributors at dojotoolkit.org"=
 target=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,event,this)"=
>
 dojo-contributors at dojotoolkit.org </a><br><a href=3D"http://dojotoolkit.or=
g/mailman/listinfo/dojo-contributors" target=3D"_blank" onclick=3D"return t=
op.js.OpenExtLink(window,event,this)">http://dojotoolkit.org/mailman/listin=
fo/dojo-contributors=20
</a><br><br><br><br></blockquote></div><br><br clear=3D"all"><br>-- <br>Jes=
se Kuhnert<br>Tacos/Tapestry, team member/developer <br><br>Open source bas=
ed consulting work centered around dojo/tapestry/tacos/hivemind.<div style=
=3D"margin: 0px;">
 _______________________________________________</div><div style=3D"margin:=
 0px;">dojo-contributors mailing list</div><div style=3D"margin: 0px;"><a h=
ref=3D"mailto:dojo-contributors at dojotoolkit.org" target=3D"_blank" onclick=
=3D"return top.js.OpenExtLink(window,event,this)">
 dojo-contributors at dojotoolkit.org</a></div><div style=3D"margin: 0px;"><a =
href=3D"http://dojotoolkit.org/mailman/listinfo/dojo-contributors" target=
=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,event,this)">http:/=
/dojotoolkit.org/mailman/listinfo/dojo-contributors=20
</a></div> </blockquote></div><br></div></span></div><div></div> </div><br>=
_______________________________________________<br>dojo-contributors mailin=
g list<br><a href=3D"mailto:dojo-contributors at dojotoolkit.org" target=3D"_b=
lank" onclick=3D"return top.js.OpenExtLink(window,event,this)">
dojo-contributors at dojotoolkit.org </a><br><a href=3D"http://dojotoolkit.org=
/mailman/listinfo/dojo-contributors" target=3D"_blank" onclick=3D"return to=
p.js.OpenExtLink(window,event,this)">http://dojotoolkit.org/mailman/listinf=
o/dojo-contributors
</a><br><br><br></blockquote> </div><br><br clear=3D"all"><br>-- <br>Jesse =
Kuhnert<br>Tacos/Tapestry, team member/developer<br><br>Open source based c=
onsulting work centered around dojo/tapestry/tacos/hivemind.<div style=3D"m=
argin: 0px;">
_______________________________________________</div><div style=3D"margin: =
0px;">dojo-contributors mailing list</div><div style=3D"margin: 0px;"><a hr=
ef=3D"mailto:dojo-contributors at dojotoolkit.org" target=3D"_blank" onclick=
=3D"return top.js.OpenExtLink(window,event,this)">
dojo-contributors at dojotoolkit.org</a></div><div style=3D"margin: 0px;"><a h=
ref=3D"http://dojotoolkit.org/mailman/listinfo/dojo-contributors" target=3D=
"_blank" onclick=3D"return top.js.OpenExtLink(window,event,this)">http://do=
jotoolkit.org/mailman/listinfo/dojo-contributors
</a></div> </blockquote></div><br></span></div><div></div>
</div><br>_______________________________________________<br>dojo-contribut=
ors mailing list<br><a onclick=3D"return top.js.OpenExtLink(window,event,th=
is)" href=3D"mailto:dojo-contributors at dojotoolkit.org">dojo-contributors at do=
jotoolkit.org
</a><br><a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=3D=
"http://dojotoolkit.org/mailman/listinfo/dojo-contributors" target=3D"_blan=
k">http://dojotoolkit.org/mailman/listinfo/dojo-contributors</a><br><br><br=
></blockquote>
</div><br><br clear=3D"all"><br>-- <br>Jesse Kuhnert<br>Tacos/Tapestry, tea=
m member/developer<br><br>Open source based consulting work centered around=
 dojo/tapestry/tacos/hivemind.

------=_Part_66820_17422639.1147784752326--


More information about the dojo-contributors mailing list