JS Test goes open source
JS Test goes open source
Written by Ian Elliot   
Monday, 03 October 2011

JS Test, the JavaScript unit testing framework that Google uses in-house has been released as an open source project.

JavaScript is, arguably, the most important language of the moment and yet it lacks the tools needed to get the job done quickly and efficiently. In particular it lacks a well supported unit testing framework - or it did until now

.V8logo

JS Test, the unit testing framework that runs on V8, Google's open source JavaScript engine has been released as an open source project.

According to the announcement was made on the Open Source at Google blog notes that JS Test has the following features:

  • Fast startup and execution time, without needing to run a browser.
  • Clean, readable output in the case of both passing and failing tests.
  • An optional browser-based test runner that can simply be refreshed whenever JS is changed.
  • Style and semantics that resemble Google Test for C++.
  • A built-in mocking framework that requires minimal boilerplate code (e.g. no $tearDown or $verifyAll calls), with style and semantics based on the Google C++ Mocking Framework.
  • A system of matchers allowing for expressive tests and easy-to-read failure output, with many built-in matchers and the ability for the user to add their own.

jstest

(Click to enlarge)

 

For more information see the JS Test project page and its getting started page.

 

V8logo

To be informed about new articles on I Programmer, subscribe to the RSS feed, follow us on Twitter or Facebook or sign up for our weekly newsletter.

Banner


Grasshopper - An Area 120 App To Teach Coding
24/04/2018

Google's in-house incubator, Area 120, has launched a free, learn-to-code app for adult beginners. It teaches JavaScript through short lessons on users iPhone or Android device.



Topcoder Marathon Match 100
16/04/2018

Topcoder is celebrating a historic event this week with a rerun of the first Marathon Match, a Random Walking fun challenge, in which 164 members took part. Thousands are expected to join in MM100 and [ ... ]


More News

Last Updated ( Tuesday, 04 October 2011 )
 
 

   
Banner
Banner
RSS feed of news items only
I Programmer News
Copyright © 2018 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.
Banner