Testing


Wednesday, April 1st, 2009

JsContext to make your JsUnitTest look purty

Category: JavaScript, Testing

Christian Johansen was sick of testNewUserWithClownShoesShouldSqueak code in his unit tests, so he took some inspiration from the Ruby Shoulda and Context frameworks and wrote JsContext which allows you to write: < View plain text > javascript new Test.Unit.Runner({     "A new User": JsContext({         "with clown shoes": JsContext({     Read the rest…

Posted by Dion Almaer at 4:14 am
2 Comments

+++--
3.3 rating from 18 votes

Monday, March 30th, 2009

Improved Readability for JavaScript Unit Tests

Category: JavaScript, Testing

Christian Johansen is tired of: mentally decoding test names like “testNewUserWithClownShoesShouldSqueak”, so I’ve written some code to improve readability for JavaScript unit tests written using JsUnitTest (from prototypejs). It’s heavily inspired by Ruby frameworks Shoulda and Context. Tests with his new framework–called jscontext–look like this: < View plain text > js new Test.Unit.Runner({     Read the rest…

Posted by Ben Galbraith at 9:07 am
2 Comments

+++--
3.1 rating from 17 votes

Wednesday, March 25th, 2009

TestSwarm: Scaling JavaScript Tests

Category: Browsers, JavaScript, Testing

John Resig is working on a new tool that tries to help us scale our JavaScript testing. When building an Ajax application, how nice would it be to have a system running tests across multiple browsers and platforms? This is necessary for anything more than a toy, especially since we have some flexible software that Read the rest…

Posted by Dion Almaer at 7:16 am
2 Comments

+++--
3.7 rating from 21 votes

Wednesday, December 31st, 2008

Why Load Testing Ajax is Hard

Category: Testing

Today we are fortunate to have a guest post by Patrick Lightbody, most recently of BrowserMob fame (and previously Selenium work, OpenQA, WebWork, and more). Let’s listen in to him talk to us about load testing, and let him know your thoughts in the comments below: I’ve been developing and testing complex web apps for Read the rest…

Posted by Dion Almaer at 9:01 am
7 Comments

++++-
4.2 rating from 30 votes

Tuesday, December 30th, 2008

New Years Resolution: File a browser bug?

Category: Browsers, Testing

John Resig has laid out his thoughts on a Web Developer’s Responsibility, and it comes down to working with various up and coming browser versions and filing bugs: It’s safe to say that the biggest tax on a web developer is spending so much time dealing with browser bugs and incompatibilities. Thus it has become Read the rest…

Posted by Dion Almaer at 7:59 am
12 Comments

+++--
3.4 rating from 25 votes

Wednesday, December 10th, 2008

Common Feature Tests

Category: Testing

Kangax has written about his new Common Feature Tests project: I have been working on a little personal project of mine for the past couple of months. It’s called CFT and stands for Common Feature Tests. There’s nothing really ground-breaking about it; CFT is simply a set of so-called feature tests for Javascript (or rather Read the rest…

Posted by Dion Almaer at 8:34 am
22 Comments

++++-
4.2 rating from 19 votes

Monday, November 24th, 2008

Meer Meer: Cross browser testing all through your one browser!

Category: Adobe, Browsers, Testing

The most exciting part of Adobe MAX last week was a service that was announced by Paul Gubbay at the “Sneaks” session that shows cool tech that Adobe folk are working on. His (very early stage) service is called Meer Meer and it is genuinely useful. You can plugin a URL and the system will Read the rest…

Posted by Dion Almaer at 8:32 am
12 Comments

++++-
4.7 rating from 38 votes

CSS Testing via Selenium

Category: CSS, Testing

Gareth Rushgrove has published some code for CSS Test, code that lets you get in there and test resulting CSS: CSS is hard to test automatically. Their appear to be two potential approaches which might have merit in solving this problem and and this sample code represents one of them. test_image.py The basic idea here Read the rest…

Posted by Dion Almaer at 6:44 am
3 Comments

+++--
3.6 rating from 17 votes

Monday, November 10th, 2008

JSLitmus: Testing JavaScript Performance

Category: Performance, Testing, Utility

Robert Kieffer has announced JSLitmus a tool “designed specifically to allow you to quickly and easily write a JavaScript test (or test suite), run it on any modern browser, and document and share the results.” To see it in action, Robert writes a test on “++” and plots the results for different browsers, and then Read the rest…

Posted by Dion Almaer at 6:20 am
2 Comments

+++--
3.4 rating from 10 votes

Tuesday, November 4th, 2008

Weed Out Obtrusive JavaScript

Category: JavaScript, Testing, Unobtrusive JS

By now, most developers have (or should have) come to realize how important it is to build unobtrusive JavaScript code. Apart from ensuring a better user experience, today’s tools and libraries make it extremely easier to embrace this practice. Continuing down the path of providing developers good tools, Robert Nyman of DOMAssistant fame has updated Read the rest…

Posted by Rey Bango at 11:52 am
19 Comments

+++--
3.1 rating from 16 votes

Testing Ext Applications With Selenium

Category: Sencha, Testing

Darrell Meyer has written a detail article on testing Ext applications, both Ext JS and GXT versions: Both Ext JS and Ext GWT applications can benefit from Selenium tests. In fact, with few exceptions, the tests created for one product should be interchangeable as both products produce the same DOM structure. With GXT applications, GWT Read the rest…

Posted by Dion Almaer at 7:15 am
4 Comments

++++-
4.3 rating from 64 votes

Tuesday, October 21st, 2008

TestMonkey: How appropriate

Category: Testing

There are a lot of monkeys making appearances in the Ajax world. Tamarins, Greasey ones, Action monkeys, and now we have TestMonkey from the Appcelerator crew: TestMonkey is an open source (Apache License) UI test framework we’re introducing today. It’s going to be fully integrated into Appcelerator (with some additional cool features on top if Read the rest…

Posted by Dion Almaer at 7:51 am
3 Comments

++++-
4 rating from 21 votes

Thursday, October 16th, 2008

Jack: Mocking JavaScript the good way

Category: Testing

Jack is a new JavaScript mocking framework coming out of Bekk in Norway. A lot of the RSpec talent is there too, so they know their testing! Jack features: Set expectations for number of calls and argument constraints Specify mock implementations for specific expectation scenarios Create mock objects with a list of stub functions Reports Read the rest…

Posted by Dion Almaer at 9:37 am
1 Comment

++++-
4 rating from 39 votes

Wednesday, September 10th, 2008

UA Profiler: Automatically testing browser features

Category: Browsers, Testing

“Steve, have you done a performance analysis on Google Chrome?” Steve Souders did one better. Rather than just running some tests, he wrote a UA Profiler that allowed him to point a browser and let it roll through the tests: UA Profiler looks at browser characteristics that make pages load faster, such as downloading scripts Read the rest…

Posted by Dion Almaer at 9:07 am
7 Comments

+++--
3.5 rating from 37 votes

Wednesday, September 3rd, 2008

QUnit: A simple look at the jQuery unit test framework

Category: JavaScript, jQuery, Testing

Chad Myers has a simple look at GUnit, the jQuery based unit test framework. His article explains how to get going, and walks through a test like this: < View plain text > javascript module("Show and Hide");   test("should hide the element when hide is called", function(){       $("#testDiv").hide();       // Read the rest…

Posted by Dion Almaer at 5:12 am
2 Comments

++++-
4 rating from 19 votes

Monday, August 11th, 2008

MockMe: A new JavaScript mocking framework

Category: JavaScript, Testing

Johannes Link is an Agile fellow who wasn’t 100% happy with the existing JavaScript unit test frameworks, and he explained why. He gives an example: < View plain text > javascript testDoubleSpeaker: function() { with(this) {     var actualMsg = null;     var mockSay = function(msg) {       actualMsg = msg; Read the rest…

Posted by Dion Almaer at 8:22 am
7 Comments

+++--
3.4 rating from 20 votes