Testling now has moved to Testling-CI

Don't use anything described below as it doesn't work anymore

All questions about Testling-CI: feedback@browserling.com

We're happy to announce Headless Testling. Headless Testling lets you run your JavaScript tests locally through jsdom and remotely with Testling.

We put headless testling on npm so installing it is as easy as:

npm install -g testling

And now you can run your tests locally!

$ testling test.js 

Or run them on real browsers by specifying --browsers argument:

$ testling test.js --browsers=iexplore/7.0,iexplore/8.0,firefox/3.5

For example, if your test.js is this:

var test = require('testling');

test('json parse', function (t) {
    t.deepEqual(JSON.parse('[1,2]'), [1,2]);
    t.end();
});

Then running testling headlessly you'll get the following output:

node/jsdom                      1/1  100 % ok

But running it with --browsers=iexplore/7.0,iexplore/8.0,firefox/3.5, the test will get executed on native IE7, IE8 and Firefox 3.5:

Bundling...  done

iexplore/7.0        0/1    0 % ok
  Error: 'JSON' is undefined
    at [anonymous]() in /test.js : line: 4, column: 5
    at [anonymous]() in /test.js : line: 3, column: 29
    at test() in /test.js : line: 3, column: 1

  > t.deepEqual(JSON.parse('[1,2]'), [1,2]);

iexplore/8.0        1/1  100 % ok
firefox/3.5         1/1  100 % ok

total               2/3   66 % ok

You can follow the development of headless testling at testling's github repo.

Follow the founders of Browserling on GitHub, Twitter, Plurk, Google+ and Facebook!

And subscribe to my blog for Browserling announcements and all kinds of other awesome blog posts!

Comments

November 07, 2011, 17:38

Isn't this what zombie.js does?

November 07, 2011, 17:45

Kindof.

November 08, 2011, 01:41

you are some clever cats, no question about it.

Allen Peterson Permalink
May 13, 2014, 11:36

Individuals either businessman or education expert dependably tend towards such written data which is remarkable and additionally fascinating enough to improve their information. By considering this people like to buy college papers online http://www.poweredessays.com/college-paper-writing-ser from this website and our written work administrations are unique and cost is to a great degree low with the goal that everybody can get our professional writing services.

December 03, 2014, 09:32

Interesting post. By the way, students do not have to worry anymore about writing essays. Using first-rate custom essay writing service, that are available 24/7, learners will always get professionally written essays.

Allen dave Permalink
August 11, 2014, 11:02

Often when people got busy, they don't care about their food and continue working hard. This cause your bad health and it is very important to take balance diet especially when you are busy. I have tip for students and professionals, if they are busy in writing papers as they can visit essayplanet writing service to buy essays and choose right plan for their papers and get it written on the other way :)

November 23, 2014, 12:04

VEry nice post...

November 27, 2014, 10:18

guys,i found the perfect site ever where professionals will assist you with reflective essay.All the time i am provided with non-plagiarized content for every essay.I just placed an order and i was surprised not only by cheap prices for supreme quality writing, but friendly customer support service.

December 03, 2014, 09:27

Interesting post. By the way, students do not have to worry anymore about writing essays. Using first-rate custom essay writing service, that are available 24/7, learners will always get professionally written essays.

kelly Permalink
December 18, 2014, 09:40

There are many students who are worried about writing effective papers and deadlines for submitting their essay papers are very short. They are in trouble what to do? If you are one of them then you'll batter understand this situation. Now kick away all worries because now you can hire professional writers to ask custom-paper-writing.org"nospam>digg on my behalf and within the deadlines. I assure you this is easiest way of getting good grades and I hope you guys will find it effective :)

Leave a new comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "linux_278": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.

Advertisements