Feeds

Google open sources JavaScript testing tools

JS Test code moved from internal ops

Boost IT visibility and business value

Google is open sourcing one of its key JavaScript testing tools in an effort to get developers to speed up web applications.

Google JS Test is used internally on the V8 JavaScript engine using in Chrome. Google has attributed much of the speed increases it claims for the browser to the performance of the V8 engine, and the company is clearly hoping this will improve matters further.

The code includes a testing function with the ability to create mock functions or class instances that can be used to check code’s operating parameters within the unit testing framework. Test runs on functions can then be carried out using the gjstest tool. Testing can be done outside the browser, but only without touching the Document Object Model (DOM).

“A requirement for using Google JS Test for a test is that the test and the code it executes be composed of pure JS,” the company said in its release notes. “That's not to say that you can't test code that manipulates the DOM – you can still do so by passing in mock implementations of DOM manipulation functions in your tests.” ®

The essential guide to IT transformation

More from The Register

next story
Munich considers dumping Linux for ... GULP ... Windows!
Give a penguinista a hug, the Outlook's not good for open source's poster child
The Return of BSOD: Does ANYONE trust Microsoft patches?
Sysadmins, you're either fighting fires or seen as incompetents now
Intel's Raspberry Pi rival Galileo can now run Windows
Behold the Internet of Things. Wintel Things
Microsoft cries UNINSTALL in the wake of Blue Screens of Death™
Cache crash causes contained choloric calamity
Eat up Martha! Microsoft slings handwriting recog into OneNote on Android
Freehand input on non-Windows kit for the first time
Time to move away from Windows 7 ... whoa, whoa, who said anything about Windows 8?
Start migrating now to avoid another XPocalypse – Gartner
You'll find Yoda at the back of every IT conference
The piss always taking is he. Bastard the.
prev story

Whitepapers

5 things you didn’t know about cloud backup
IT departments are embracing cloud backup, but there’s a lot you need to know before choosing a service provider. Learn all the critical things you need to know.
Implementing global e-invoicing with guaranteed legal certainty
Explaining the role local tax compliance plays in successful supply chain management and e-business and how leading global brands are addressing this.
Build a business case: developing custom apps
Learn how to maximize the value of custom applications by accelerating and simplifying their development.
Rethinking backup and recovery in the modern data center
Combining intelligence, operational analytics, and automation to enable efficient, data-driven IT organizations using the HP ABR approach.
Next gen security for virtualised datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.