Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

add jasmine2 framework #1675

Closed
wants to merge 1 commit into from
Closed

add jasmine2 framework #1675

wants to merge 1 commit into from

Conversation

hankduan
Copy link
Contributor

This PR enables protractor to work with jasmine2.0 (see #362)

Pending angular/jasminewd#13 for the release of jasminewd2

Note, passing timeout as part of it, fit, etc does not work yet. Pending jasmine/jasmine@a4faa80

Also, stacktrace is messed up when calling done.fail('xyz') because jasmine2 does not allow custom stacktrace. Filed an issue at jasmine/jasmine#734

@hankduan
Copy link
Contributor Author

hankduan commented Jan 2, 2015

Docs to go along with this: #1679

@juliemr
Copy link
Member

juliemr commented Jan 2, 2015

Note that the travis error is due to jasminewd2 not yet being published.

@@ -236,7 +236,7 @@ exports.config = {
// ----- The test framework --------------------------------------------------
// ---------------------------------------------------------------------------

// Test framework to use. This may be jasmine, cucumber, or mocha.
// Test framework to use. This may be jasmine, jasmine2, cucumber, or mocha.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's change the value listed below to 'jasmine2' as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As in "Jasmine2 is fully supported as a test and assertion framework."?

@juliemr
Copy link
Member

juliemr commented Jan 2, 2015

Change the default value in configParser to jasmine2
EDIT: Nevermind, that would be a breaking change which we don't want to do here.

@@ -12,10 +12,16 @@ describe('locators', function() {

it('should allow custom expectations to expect an element', function() {
this.addMatchers({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be helpful to show an example more like this in the documentation PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replaced the example in the documentation PR with this.

@juliemr
Copy link
Member

juliemr commented Jan 5, 2015

LGTM once Travis passes.

@hankduan
Copy link
Contributor Author

hankduan commented Jan 5, 2015

committed with 1e60a95

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants