Chrome is 3x faster, that does help. I haven't tried debugging with
it, I think its javascript console should work fine.
What do you mean running the tests at the suite level? When I
target a particular spec (clicking on a spec, navigating to
SpecRunner.html?spec=blah), it still seems to run all the tests. The
results shown are only for a particular test, but the runtime hasn't
really decreased and if I click the "show passed" checkbox it shows
results for all tests.
Isn't there a headless way to run the tests? I thought that might
be fastest, though maybe thats hard to work with during development
and only appropriate for a continuous integration server.
On Nov 12, 5:48 am, Rajan Agaskar <
ra...@pivotallabs.com> wrote:
> You're right about dom manipulation -- it tends to be extremely expensive.
> If you don't need a fixture, don't use it -- make sure you're inserting
> fixtures as close as possible to the tests that actually use them.
>
> If you're testing stuff like drag/drop that causes the browser to re-render,
> you can sometimes save some time by making sure your fixture area is
> off-screen (pretty sure we already do this with the jasmine default runner).
>
> if you're using waits, convert to using waitsFor, which will complete as
> soon as your latch function returns true.
>
> Try using Safari or Chrome and see if you get a better rresult.
>
> Run tests only on the suite level, then just do a full run when you check
> in.
>
> Hope this helps!
>
> Thanks!
>
> Rajan
>
> On Thu, Nov 11, 2010 at 9:45 PM, fschwiet <
fschw...@gmail.com> wrote:
> > My tests are getting slow. I running them in firefox. Only a dozen
> > tests actually interact with a server, they are isolated to an iframe
> > (maybe 20% of overall time). I think a majority of the delay is from
> > DOM manipulation.
>
> > I'm wondering what is the fastest way to run my tests? I don't really
> > know Ruby, or Linux, I would learn either if its something I can
> > script to deploy to multiple machines easily.
>
> > 500 tests are taking 10 seconds to run, on a coworkers machine they
> > took 30. It seems I need to break the tests up to make them runnable,
> > I'd rather not.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Jasmine" group.
> > To post to this group, send email to
jasmi...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
jasmine-js+...@googlegroups.com<
jasmine-js%2Bunsu...@googlegroups.com>
> > .