Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Would Jasmine 2 offer any benefits over Jasmine 1.3 for Protractor?

Tags:

protractor

I would like to stay on top of the latest releases. I noticed that Protractor is using Jasmine 1.3 (or is it mini Jasmine). With newer releases of Jasmine available then is there some additional functionality that these offer ?

like image 299
Alan2 Avatar asked Jul 21 '14 12:07

Alan2


People also ask

Is Jasmine same as Protractor?

Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it's suited for websites, Node. js projects, or anywhere that JavaScript can run; Protractor: End-to-end test framework for Angular and AngularJS applications.

Does protractor use Jasmine?

By default, Protractor uses the Jasmine test framework for its testing interface. This tutorial assumes some familiarity with Jasmine, and we will use version 2.4. This tutorial will set up a test using a local standalone Selenium Server to control browsers.

What is Jasmine framework in protractor?

Jasmine is a test framework, which provides BDD (Behavior Driven Development) functionalities for your automation framework. It is an independent framework i.e there is no dependency with other framework and doesn't require DOM. A describe-block, it-block, and an expectation with matcher makes one complete test script.


1 Answers

Jasmine 2.0 has a couple of big changes, and a lot of internal cleanup.

  • it adds asynchronous testing via done() function, but this is already patched in to the version of 1.3.1 that Protractor uses
  • it makes registering reporters easier - this would be nice to have for Protractor
  • it changes the syntax for registering custom matchers

We recently tried to update Protractor to 2.0, but it would have resulted in a loss of some functionality. You can see the full discussion at https://github.com/angular/jasminewd/pull/5

like image 76
Jmr Avatar answered Jan 01 '23 11:01

Jmr