Git Product home page Git Product logo

wdio-jasmine-framework's Introduction

WDIO Jasmine Framework Adapter

Build Status Test Coverage dependencies Status


A WebdriverIO plugin. Adapter for Jasmine testing framework.

Installation

The easiest way is to keep wdio-jasmine-framework as a devDependency in your package.json.

{
  "devDependencies": {
    "wdio-jasmine-framework": "~0.2.20"
  }
}

You can simple do it by:

npm install wdio-jasmine-framework --save-dev

Instructions on how to install WebdriverIO can be found here.

Configuration

Following code shows the default wdio test runner configuration...

// wdio.conf.js
module.exports = {
  // ...
  framework: 'jasmine'
  jasmineNodeOpts: {
    defaultTimeoutInterval: 10000
  }
  // ...
};

jasmineNodeOpts Options

defaultTimeoutInterval

Timeout until specs will be marked as failed.

Type: Number
Default: 10000

expectationResultHandler

The Jasmine framework allows it to intercept each assertion in order to log the state of the application or website depending on the result. For example it is pretty handy to take a screenshot every time an assertion fails.

Type: Function
Default: null

grep

Optional pattern to selectively select it/describe cases to run from spec files.

Type: RegExp | string
Default: undefined

invertGrep

Inverts 'grep' matches

Type: Boolean
Default: false

cleanStack

Cleans up stack trace and removes all traces of node module packages

Type: Boolean
Default: true

random

Run specs in semi-random order

Type: Boolean
Default: false

stopOnSpecFailure

Stops spec execution on first fail (other specs continue running)

Type: Boolean
Default: false

Development

All commands can be found in the package.json. The most important are:

Watch changes:

$ npm run watch

Run tests:

$ npm test

# run test with coverage report:
$ npm run test:cover

Build package:

$ npm build

For more information on WebdriverIO see the homepage.

wdio-jasmine-framework's People

Contributors

anth0d avatar borisosipov avatar christian-bromann avatar cnishina avatar deltacircuit avatar evan-scott-zocdoc avatar finelord avatar gchqdeveloper911 avatar greenkeeper[bot] avatar jrobinson01 avatar just-boris avatar patthiel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wdio-jasmine-framework's Issues

Asynchronous Retry Flaky Tests Does Not Work

Documentation suggests that recent versions of wdio-jasmine-framework allow for retries of flaky tests.

The most recent available version of wdio-jasmine-framework in node is 0.2.5, and the documentation states that this functionality is available in 0.3.0 or greater (unavailable? mistake in documentation?).

Anyway, there are tests in release 0.2.5 for the retry functionality, but the retries do not work on the tests I am running.

An in-range update of np is breaking the build 🚨

Version 2.20.1 of np was just published.

Branch Build failing 🚨
Dependency np
Current Version 2.20.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

np is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 5 commits.

  • af46524 2.20.1
  • 33f297b Clean up unnecessary catch (#244)
  • e5b5307 Handle undefined repository URL in the linkify commits feature (#243)
  • e13fcbc Fix linting
  • b38f98e Update URL to XO

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

beforeAll is executed when suite is disabled

The problem

When a describe block is disabled using xdescribe, the beforeAll hook still gets executed.

Environment

  • WebdriverIO version: Latest
  • Node.js version: 4.2.8
  • wdio test runner
  • sync
  • wdio-jasmine-framework (latest)

Code To Reproduce Issue [ Good To Have ]

Checkout the below branch:
https://github.com/patthiel/wdio-test-playground/tree/disabled-test-issue

Run: gulp wdio

Example Spec:
https://github.com/patthiel/wdio-test-playground/blob/disabled-test-issue/specs/test.spec.js

cc. @christian-bromann

An in-range update of eslint is breaking the build 🚨

Version 4.18.1 of eslint was just published.

Branch Build failing 🚨
Dependency eslint
Current Version 4.18.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

eslint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 5 commits.

  • 8c237d8 4.18.1
  • 537b5c3 Build: changelog update for 4.18.1
  • f417506 Fix: ensure no-await-in-loop reports the correct node (fixes #9992) (#9993)
  • 3e99363 Docs: Fixed typo in key-spacing rule doc (#9987)
  • 7c2cd70 Docs: deprecate experimentalObjectRestSpread (#9986)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of eslint-plugin-node is breaking the build 🚨

☝️ Greenkeeper’s updated Terms of Service will come into effect on April 6th, 2018.

Version 6.0.1 of eslint-plugin-node was just published.

Branch Build failing 🚨
Dependency eslint-plugin-node
Current Version 6.0.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-node is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Release Notes v6.0.1

Bug fixes

  • 234703c fixed a regression that node/no-unsupported-features crashes if engines field exists but engines.node field doesn't exist in package.json (#109). Thanks @ZauberNerd !
Commits

The new version differs by 3 commits.

  • 5260039 6.0.1
  • 9ccc91d Chore: add a test for #109
  • 234703c Fix: ensure "version" always has a valid value in parseOptions (#109)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

throws an erro

see webdriverio/webdriverio#1073

Error: Cannot generate spec hash for runner with no 'specs' key
    at Error (native)
    at ReporterStats.getSpecHash (/Users/justin.williams/.nvm/versions/node/v5.0.0/lib/node_modules/webdriverio/build/lib/utils/ReporterStats.js:212:42)
    at ReporterStats.getSpecStats (/Users/justin.williams/.nvm/versions/node/v5.0.0/lib/node_modules/webdriverio/build/lib/utils/ReporterStats.js:227:33)
    at ReporterStats.suiteStart (/Users/justin.williams/.nvm/versions/node/v5.0.0/lib/node_modules/webdriverio/build/lib/utils/ReporterStats.js:239:18)
    at BaseReporter.<anonymous> (/Users/justin.williams/.nvm/versions/node/v5.0.0/lib/node_modules/webdriverio/build/lib/utils/BaseReporter.js:134:25)
    at emitOne (events.js:77:13)
    at BaseReporter.emit (events.js:169:7)
    at BaseReporter.handleEvent (/Users/justin.williams/.nvm/versions/node/v5.0.0/lib/node_modules/webdriverio/build/lib/utils/BaseReporter.js:326:27)
    at Launcher.messageHandler (/Users/justin.williams/.nvm/versions/node/v5.0.0/lib/node_modules/webdriverio/build/lib/launcher.js:469:28)
    at emitTwo (events.js:87:13)

An in-range update of sinon is breaking the build 🚨

Version 4.2.1 of sinon was just published.

Branch Build failing 🚨
Dependency sinon
Current Version 4.2.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

sinon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Release Notes Speed up stub creation
  • Performance: spend less time stubbing methods (#1627)
Commits

The new version differs by 14 commits.

  • a8171c3 Update docs/changelog.md and set new release id in docs/_config.yml
  • 32d6c4a Add release documentation for v4.2.1
  • f3e34f8 4.2.1
  • 158f33e Update History.md and AUTHORS for new release
  • a5c22f2 #1627
  • 2d0509e "throttle" is actually a "debounce" in the example
  • d929b22 Merge pull request #1670 from mroderick/update-footer
  • 225083e Update copyright statement
  • 1237e0d Update footer to use Stack Overflow
  • fdd1948 added another sinon article (#1669)
  • d7075d9 Add .yml extension to .eslintrc
  • c28bca3 Make sure eslint-plugin-ie11 is applied to entire codebase
  • cf3ed84 Move eslint config into it's own file
  • 1503cce Add eslint-plugin-ie11 (#1666)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Is the Jasmine `done` callback supposed to work?

I'm trying to write an async spec using Jasmine's done callback, but it complains that done is undefined. This works find with Jasmine 2.5.2 without the wdio wrapper.

describe('jasmine async', function () {
  it('works with a done callback', function (done) {
    setTimeout(function () {
      done.fail();
    }, 10);
  });
});

Which results in

․/home/adborden/projects/cg/new/973ade9632c4629c753422755ddacafe-106fc7d391d5f1d75bf190fa1023197320d39d6d/spec.js:5
      done.fail();
          ^

TypeError: Cannot read property 'fail' of undefined
    at Timeout._onTimeout (/home/adborden/projects/cg/new/973ade9632c4629c753422755ddacafe-106fc7d391d5f1d75bf190fa1023197320d39d6d/spec.js:5:11)
    at tryOnTimeout (timers.js:232:11)
    at Timer.listOnTimeout (timers.js:202:5)


1 passing (2.80s)


npm ERR! Test failed.  See above for more details.

But I would expect to see 1 failure.

I tried to setup a minimal example to demonstrate this in case there's something wrong with my setup. You can try this out locally by downloading this gist, unpack, and run npm install && npm test.

tests cannot execute async code

Async code (https request) is not executed within the test.

Steps:

code:

var http = require("https");
...

function api_request(options, to_write) {
  return new Promise(resolve => {
    var req = http.request(options, function(res) {
      var chunks = [];
      var cookies = res.headers['set-cookie'];

      res.on("data", function(chunk) {
        chunks.push(chunk);
      });
      res.on("end", function() {
        var body = Buffer.concat(chunks).toString();
        if (!isValidJSON(body)) {
          body = "{}";
        }
        resolve({ body: JSON.parse(body), cookies: cookies });
      });
    });

    if (options.method == "POST") {
      req.write(JSON.stringify(to_write));
    }
    req.end();
  });
}
describe('test', function() {
  beforeAll(function(done) {
    api_request(login_options, login_to_write).then(function(data) {
      var session_options = {
        "method": "GET",
        ...
      };
      return api_request(session_options);
    }).then(function(data) {
      var profile_show_options = {
        "method": "GET",
        ...
      };
      token = data.body.token;
      return token;
    }).then(function(data) {
      var profile_update_options = {
        "method": "POST",
        ...
      };
      var profile_update_to_write = {
        name: 'FirstName LastName',
        ...
      };
      return api_request(profile_update_options, profile_update_to_write);
    }).then(function(data) {
      done();
    });
  });

This code perfectly works (i.e. it successfully logs in to server, gets necessary data, then updates the required fields) in a separate .js file when run from node as
node test.js

This code also perfectly works if it is run within a standalone jasmine as
jasmine ./test.js

However it seems like this code is totally skipped when executed using wdio as:
./node_modules/.bin/wdio ./my/autotest/wdio.conf.test.js --spec ./my/autotest/specs/test.js

Setup:

"wdio-jasmine-framework": "^0.3.2",
"wdio-selenium-standalone-service": "0.0.9",
"jasmine": "~2.8.0",

build reporter crashes with certain versions if wide

Ive just had the following crash

/Users/chrismatheson/Code/teachersregister/web/node_modules/webdriverio/build/lib/utils/BaseReporter.js:336
                        throw _iteratorError;
                        ^

TypeError: Cannot read property 'split' of undefined
    at /Users/chrismatheson/Code/teachersregister/web/node_modules/wdio-spec-reporter/build/reporter.js:267:43
    at Array.forEach (native)
    at SpecReporter.getFailureList (/Users/chrismatheson/Code/teachersregister/web/node_modules/wdio-spec-reporter/build/reporter.js:265:22)
    at SpecReporter.getSuiteResult (/Users/chrismatheson/Code/teachersregister/web/node_modules/wdio-spec-reporter/build/reporter.js:318:28)
    at SpecReporter.printSuiteResult (/Users/chrismatheson/Code/teachersregister/web/node_modules/wdio-spec-reporter/build/reporter.js:326:30)
    at SpecReporter.<anonymous> (/Users/chrismatheson/Code/teachersregister/web/node_modules/wdio-spec-reporter/build/reporter.js:109:18)
    at emitOne (events.js:77:13)
    at SpecReporter.emit (events.js:169:7)
    at BaseReporter.handleEvent (/Users/chrismatheson/Code/teachersregister/web/node_modules/webdriverio/build/lib/utils/BaseReporter.js:324:35)
    at Launcher.messageHandler (/Users/chrismatheson/Code/teachersregister/web/node_modules/webdriverio/build/lib/launcher.js:590:28)

i think this is from your latest change 64373dd

where if an error does not contain a stack it will error with an internal error rather than the original

maybe this is something to do with warnings vs errors?

'suite1' gets appended to the Test Suite name.

I'm getting this as the report for a failing test.

1) Form List Pagesuite1 should have the right title:
Expected 'Forms | AwesomeForm' to equal 'Forms | MyAwesomeFormApp'.

See the 'suite1' string above?

This is my test code.

describe('Form List Page', () => {
    beforeAll(() => {
        browser.login()
        browser.url('/#/forms/list')
    })

    it('should have the right title', () => {
        const title = browser.getTitle()
        expect(title).toEqual('Forms | MyAwesomeFormApp')
    })
})

My test suite is simply named 'Form List Page' and yet it gets displayed as 'Form List Pagesuite1'.

Here are my dependencies used:

"wdio-jasmine-framework": "^0.3.1"
"wdio-spec-reporter": "^0.1.0"
"webdriverio": "^4.8.0"

node v8.3.1

An in-range update of sinon is breaking the build 🚨

Version 2.3.2 of sinon just got published.

Branch Build failing 🚨
Dependency sinon
Current Version 2.3.1
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As sinon is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Release Notes Minor fixes
  • Fix failing sandbox.resetBehavior() (#1428)
  • Fix restoring getters/setters/values for previously unexisting props (#1419)
  • Called in order takes callCount into account. Closes #1398.
Commits

The new version differs by 17 commits.

  • 2463d10 Update docs/changelog.md and set new release id in docs/_config.yml
  • 2e6bb45 Add release documentation for v2.3.2
  • 87abc01 2.3.2
  • 96e8abe Update Changelog.txt and AUTHORS for new release
  • 2f941e2 Merge pull request #1406 from lucasfcosta/called-in-order-considers-callcount
  • 3af985a Merge pull request #1427 from fearphage/remove-try-from-tests
  • c81d76b Merge pull request #1428 from fatso83/failing-sandbox-reset
  • 0bf0a79 Fix failing sandbox.resetBehavior()
  • be4e53b Add failing tests for sandbox.reset()
  • fe049aa Add code snippet for createStubInstance (#1423)
  • 9e23c4a added rule to prevent try-catch usage in tests
  • 528a7dc switched from try-catch to assert.exception()
  • d8dac84 Add downloads per month banner to README.md
  • e933add Add site/_docs/ to .eslintignore
  • ebe37da Add documentation for "has" matcher on embedded objects (#1422)

There are 17 commits in total.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of sinon is breaking the build 🚨

Version 4.2.0 of sinon was just published.

Branch Build failing 🚨
Dependency sinon
Current Version 4.1.6
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

sinon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 9 commits.

  • 5063c33 Update docs/changelog.md and set new release id in docs/_config.yml
  • 28aee6f Add release documentation for v4.2.0
  • 3cc6ac2 4.2.0
  • 6444c67 Update History.md and AUTHORS for new release
  • 3eaf042 Update package-lock.json
  • f2d5902 Fix tests for IE11
  • c5dfaae Add match.every and match.some (#1624) (#1661)
  • 781429d Use "stale" as label for stale issues (#1658)
  • acebab9 Documentation: async calls (#1286) (#1655)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of np is breaking the build 🚨

Version 2.14.1 of np just got published.

Branch Build failing 🚨
Dependency np
Current Version 2.14.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As np is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details - ❌ **continuous-integration/travis-ci/push** The Travis CI build failed [Details](https://travis-ci.org/webdriverio/wdio-jasmine-framework/builds/227816347?utm_source=github_status&utm_medium=notification)

Commits

The new version differs by 2 commits0.

false

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Does not display each expect result

Hi, I have an it that contains multiple expects and when one of them fails, I can't determine which one because in the command line it will only display one error for the whole it block so i need to manually check which of the expects failed. Is there a way to display all the failed in expects?

The expectationResultHandler function affect failed test

I use wdio example for jasmine. I made two changes. I defined expectationResultHandler function for taking screenshot and failed test from example where I changed title. I got result only 0 passing and random I got right result 0 passing, 1 failing.

I think there is problem with this line of code:
browser.saveScreenshot(('assertionError_' + title + '.png'));

Focused tests with generator functions are not run

The jasmine runner allows running of selected specs by changing it -> fit. However, fit's with generator functions don't correctly run the generator. It seems that "fit" was left out of the INTERFACES in lib/adapter.js

Session not ended after exceptions thrown

The problem

When a waitFor command or waitUntil times out, it throws an exception like below.. However, after this error is encountered, the runner fails to end the session where the error was encountered. Leaving many dead browsers open, when running a full suite of integration tests.

/Developer/myProject/node_modules/wdio-jasmine-framework/node_modules/wdio-sync/node_modules/fibers/future.js:313
                        throw(ex);
                        ^
Error: element (something) still not existing after 5000ms

Environment

  • WebdriverIO version: 4.0.9
  • Node.js version: 4.2.4
  • wdio test runner
  • synchronous & asynchronous modes
  • gulp-webdriver
  • selenium-standalone 2.5.3 (occurs in both FF driver & Chromedriver 2.22)

Link to Selenium/WebdriverIO logs

Selenium Logs
Wdio Logs

Code To Reproduce Issue

Example Spec

@christian-bromann i don't think this is happening with each framework, so i'm posting it here as a jasmine specific bug. Let me know if you think this is more a wdio bug and i can close this and open it in that project

An in-range update of sinon is breaking the build 🚨

Version 4.2.3 of sinon was just published.

Branch Build failing 🚨
Dependency sinon
Current Version 4.2.2
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

sinon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 7 commits.

  • b5968ab Update docs/changelog.md and set new release id in docs/_config.yml
  • 9cbf3f2 Add release documentation for v4.2.3
  • 45cf330 4.2.3
  • 8f54d73 Update History.md and AUTHORS for new release
  • a401b34 Update package-lock.json
  • a21e4f7 Replace formatio with @sinonjs/formatio
  • f4e44ac Use comments in pull request template to get better descriptions with less template text

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Jasmine Capture screen on failure even jasmineNodeOpts hasn't been set

First at all, thank @christian-bromann and the team so much for bringing us an awsome JS framework.

I just started using webdriverio, I used wdio as a test runner and Jasmine framework. Sorry if it's a dummy question if I missed any info from documentation (Developer Guide).

I saw that to capture a failure, we need to add:
screen shot 2016-12-22 at 11 46 47

But in my wdio.conf.js. I didn't set that but I'm still getting screeenshot on failure. That's cool but I don't now why.

screen shot 2016-12-22 at 11 52 06

Thanks!

Cannot write asynchronous tests (sync: false) with jasmine

We are considering switching from sync: true to sync: false in wdio.conf and using the new ES 7 async/await syntax instead of fibers, but we cannot get jasmine to work with sync: false.

We have found fibers to sometimes cause confusion to devs not yet familiar with what fibers are actually doing and how they work. They also require adding commands to browser for async actions like setting up drymock that has nothing to do with browser.

My understanding is that if a test returned a promise that it would wait. This appears to be natively supported by mocha, but this does not seem to be natively supported by jasmine. In other projects we are using jasmine-pit to add support for promises (and the async/await syntax).

The wdio-sync project assumes the specFn takes no arguments here and thus swallows the done function object provided by jasmine and required by plugins such as jasmine-pit.

Additionally wdio-jasmine-framework only supports test methods named 'it' or 'fit' here so a plugin like jasmine-pit would not work anyway.

I created a test project webdriverio-async-jasmine-tests with some very simple specs that don't behave as expected.

I created two async style tests with sync:false configured in wdio.conf. One of which expects done argument which is not provided and the other which returns a promise.

Interestingly, wdio does appear to wait for the promise in beforeAll, but it does not wait for promise returned from it. I'm not entirely certain why promises work in beforeAll but not in it as they seem to use mostly the same code. It would be awsome if wdio-jasmine-framework would resolve promises returned from the it block because then the async/await syntax should just work.

Is it feasible to have promises returned by it block auto resolved by wdio? or does this require changes to jasmine itself?
If jasmine changes would be needed how about supporting the pit method to resolve promises?

webdriverio-async-jasmine-tests

An in-range update of jasmine is breaking the build 🚨

Version 2.9.0 of jasmine was just published.

Branch Build failing 🚨
Dependency jasmine
Current Version 2.8.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

jasmine is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Release Notes 2.9.0

Please see the release notes

Commits

The new version differs by 3 commits.

  • 9cda3c3 Version bump to 2.9.0
  • c3271d2 Use the correct addMatchers interface from core
  • e0c9d2b Updated docs URL in README

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of np is breaking the build 🚨

Version 2.19.0 of np was just published.

Branch Build failing 🚨
Dependency np
Current Version 2.18.3
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

np is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 6 commits.

  • b108857 2.19.0
  • c433f7d Use yarn publish for Yarn (#220)
  • c144613 Increase npm ping timeout to 15 seconds
  • ee4eab9 Add current: before current version in prompt (#227)
  • 1ebfefd Fix check for OTP input (#229)
  • 4c8edc2 Document adding np as dependency - fixes #212 (#215)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of jasmine is breaking the build 🚨

Version 2.99.0 of jasmine was just published.

Branch Build failing 🚨
Dependency jasmine
Current Version 2.9.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

jasmine is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 2 commits.

  • 353fecc bump version to 2.99
  • 4d48e70 ignore package-lock so we always get new versions in CI

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of eslint-plugin-import is breaking the build 🚨

Version 2.9.0 of eslint-plugin-import was just published.

Branch Build failing 🚨
Dependency eslint-plugin-import
Current Version 2.8.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-import is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 101 commits.

  • 180d71a bump plugin to v2.9.0
  • 0231c78 Merge pull request #1026 from isiahmeadows/patch-1
  • ae5a031 Missed a link
  • 5b0777d Add no-default-export + docs/tests (#936)
  • ff3d883 Merge pull request #1025 from patrick-steele-idem/update-dependencies
  • 654d284 Merge pull request #1024 from patrick-steele-idem/issue-1023
  • 9b20a78 Upgraded "find-root" and "lodash.get" for the webpack resolver
  • 8778d7c Fixes #1023 - Load exceptions in user resolvers are not reported
  • 91cfd6d Merge pull request #1022 from nevir/patch-1
  • 0e729c7 no-self-import is unreleased
  • 219a8d2 Merge pull request #1012 from silvenon/extensions-export
  • ab49972 Support export declarations in extensions rule
  • 3268a82 Merge pull request #1010 from silvenon/extensions
  • fdcd4d9 Add a .coffee test proving extension resolve order
  • bc50394 Merge pull request #1009 from silvenon/extensions

There are 101 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of eslint-plugin-import is breaking the build 🚨

Version 2.4.0 of eslint-plugin-import just got published.

Branch Build failing 🚨
Dependency eslint-plugin-import
Current Version 2.3.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As eslint-plugin-import is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 10 commits.

  • 44ca158 update utils changelog
  • a3728d7 bump eslint-module-utils to v2.1.0
  • 3e29169 bump v2.4.0
  • ea9c92c Merge pull request #737 from kevin940726/master
  • 8f9b403 fix typos, enforce type of array of strings in allow option
  • 95315e0 update CHANGELOG.md
  • 28e1623 eslint-module-utils: filePath in parserOptions (#840)
  • 2f690b4 update CI to build on Node 6+7 (#846)
  • 7d41745 write doc, add two more tests
  • dedfb11 add allow glob for rule no-unassigned-import, fix #671

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Implement Stop After Failure Functionality

From the discussion at webdriverio/webdriverio#1928

Jasmine has implemented the concept of stopping after the first failure: https://github.com/jasmine/jasmine-npm/blob/80e6b334d424202893519e6900568c65a663db40/lib/jasmine.js#L147-L149

However, it simply causes expectations to throw exceptions. Based on the framework tests, those throws are intentionally ignored.

I have been unable to figure out how to properly handle this. If I can get some guidance, I'll PR the changes.

An in-range update of eslint is breaking the build 🚨

Version 4.17.0 of eslint was just published.

Branch Build failing 🚨
Dependency eslint
Current Version 4.16.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

eslint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 11 commits.

  • 2af9446 4.17.0
  • 5ad3fb2 Build: changelog update for 4.17.0
  • 1da1ada Update: Add "multiline" type to padding-line-between-statements (#8668)
  • bb213dc Chore: Use messageIds in some of the core rules (#9648)
  • 1aa1970 Docs: remove outdated rule naming convention (#9925)
  • 3afaff6 Docs: Add prefer-destructuring variable reassignment example (#9873)
  • d20f6b4 Fix: Typo in error message when running npm (#9866)
  • 51ec6a7 Docs: Use GitHub Multiple PR/Issue templates (#9911)
  • dc80487 Update: space-unary-ops uses astUtils.canTokensBeAdjacent (fixes #9907) (#9906)
  • 084351b Docs: Fix the messageId example (fixes #9889) (#9892)
  • 9cbb487 Docs: Mention the globals key in the no-undef docs (#9867)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Does not handle exception from waitForVisible

Writing a test with waitForVisible gives a command error instead of being picked up by jasmine. This leads to the test not being reported as failed in the generated junit xml file.

Test with:

describe('test waitForVisible', function() {

    it('should not crash on waitForVisible', function() {
        browser
            .url('http://the-internet.herokuapp.com/shifting_content/menu?mode=random')
            .waitForVisible('#content7', 1000, false, function(err, res){
                console.log("Error: " + err + ", response " + res);
            })
        ;
        expect(true).toBe(true);
    });

});

An in-range update of mocha is breaking the build 🚨

Version 5.0.1 of mocha was just published.

Branch Build failing 🚨
Dependency mocha
Current Version 5.0.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

mocha is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 15 commits.

  • 09ce746 Release v5.0.1
  • 70027b6 update changelog for v5.0.1 [ci skip]
  • 44aae9f add working wallaby config
  • 412cf27 [Update] license year
  • b7377b3 rename help-wanted to "help wanted" in stale.yml
  • d975a6a fix memory leak when run in v8; closes #3119
  • 3509029 update .gitignore to only ignore root mocha.js [ci skip]
  • b57f623 fix: When using --delay, .only() no longer works. Issue #1838
  • cd74322 Slight copy update on docs for test directory
  • f687d2b update docs for the glob
  • 14fc030 Add all supported wallaby editors
  • 2e7e4c0 rename "common-mistake" label to "faq"
  • bca57f4 clarify docs on html, xunit and 3p reporters; closes #1906
  • 2fe2d01 Revert "fix travis "before script" script"
  • c0ac1b9 fix travis "before script" script

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of sinon is breaking the build 🚨

☝️ Greenkeeper’s updated Terms of Service will come into effect on April 6th, 2018.

Version 4.4.0 of sinon was just published.

Branch Build failing 🚨
Dependency sinon
Current Version 4.3.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

sinon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 6 commits.

  • 78b2192 Update docs/changelog.md and set new release id in docs/_config.yml
  • 1f3b7dc Add release documentation for v4.4.0
  • a50f759 4.4.0
  • 9f0615e Update History.md and AUTHORS for new release
  • b81d20f Change return value of yield and callArg
  • 2c2bc0d Added comma, for clarity

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

SauceLabs Titles For Tests Not Showing Up

When running WDIO tests in SauceLabs only the names of the it functions are appearing. Other than this the test is listed as Jasmine TopLevel Suite. The WDIO documentation for this functionality uses Cucumber as the example and it clearly displays the name of both the feature and scenario.

jasminewdiobug01

An in-range update of eslint is breaking the build 🚨

Version 4.7.2 of eslint just got published.

Branch Build failing 🚨
Dependency eslint
Current Version 4.7.1
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As eslint is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Release Notes v4.7.2
Commits

The new version differs by 3 commits.

  • e164397 4.7.2
  • b7818ba Build: changelog update for 4.7.2
  • 4f87732 Fix: Revert setting node.parent early (fixes #9331) (#9336)

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Does not retry when `expect()` fails

Hi there,

I am building a test suite using this adapter, and can't get my jasmine tests to retry when expectations fail. Throwing an error explicitly works though (as explained in #16 by @christian-bromann ):

package.json

{
  "dependencies": {
    "jasmine": "2.5.3",
    "selenium-standalone": "6.1.0",
    "wdio-jasmine-framework": "0.3.0",
    "wdio-selenium-standalone-service": "0.0.8",
    "webdriverio": "4.6.2"
  }
}

wdio.config.js

exports.config = {
  specs: ['./tests.js'],
  services: ['selenium-standalone'],
  capabilities: [{
    browserName: 'chrome',
  }],
  framework: 'jasmine',
};

tests.js

describe('failing tests', () => {
  it('b', () => {
    console.log('run me b');
    throw new Error('fail');
  }, 2);

  it('a', () => {
    console.log('run me a');
    expect(true).toBe(false);
  }, 2);
});

console output

run me b
run me b
run me b
run me a

0 passing (3.00s)
2 failing

I tried throwing errors in the expectationResultHandler instead, but that doesn't help either. Any help would be greatly appreciated! 🙂

An in-range update of eslint is breaking the build 🚨

Version 4.16.0 of eslint was just published.

Branch Build failing 🚨
Dependency eslint
Current Version 4.15.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

eslint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Release Notes v4.16.0
  • e26a25f Update: allow continue instead of if wrap in guard-for-in (fixes #7567) (#9796) (Michael Ficarra)
  • af043eb Update: Add NewExpression support to comma-style (#9591) (Frazer McLean)
  • 4f898c7 Build: Fix JSDoc syntax errors (#9813) (Matija Marohnić)
  • 13bcf3c Fix: Removing curly quotes in no-eq-null report message (#9852) (Kevin Partington)
  • b96fb31 Docs: configuration hierarchy for CLIEngine options (fixes #9526) (#9855) (PiIsFour)
  • 8ccbdda Docs: Clarify that -c configs merge with .eslintrc.* (fixes #9535) (#9847) (Kevin Partington)
  • 978574f Docs: Fix examples for no-useless-escape (#9853) (Toru Kobayashi)
  • cd5681d Chore: Deactivate consistent-docs-url in internal rules folder (#9815) (Kevin Partington)
  • 2e87ddd Docs: Sync messageId examples' style with other examples (#9816) (Kevin Partington)
  • 1d61930 Update: use doctrine range information in valid-jsdoc (#9831) (Teddy Katz)
  • 133336e Update: fix indent behavior on template literal arguments (fixes #9061) (#9820) (Teddy Katz)
  • ea1b15d Fix: avoid crashing on malformed configuration comments (fixes #9373) (#9819) (Teddy Katz)
  • add1e70 Update: fix indent bug on comments in ternary expressions (fixes #9729) (#9818) (Teddy Katz)
  • 6a5cd32 Fix: prefer-destructuring error with computed properties (fixes #9784) (#9817) (Teddy Katz)
  • 601f851 Docs: Minor modification to code comments for clarity (#9821) (rgovind92)
  • b9da067 Docs: fix misleading info about RuleTester column numbers (#9830) (Teddy Katz)
  • 2cf4522 Update: Rename and deprecate object-property-newline option (#9570) (Jonathan Pool)
  • acde640 Docs: Add ES 2018 to Configuring ESLint (#9829) (Kai Cataldo)
  • ccfce15 Docs: Minor tweaks to working with rules page (#9824) (Kevin Partington)
  • 54b329a Docs: fix substitution of {{ name }} (#9822) (Andres Kalle)
Commits

The new version differs by 22 commits.

  • 33ca1ea 4.16.0
  • 1a9ddee Build: changelog update for 4.16.0
  • e26a25f Update: allow continue instead of if wrap in guard-for-in (fixes #7567) (#9796)
  • af043eb Update: Add NewExpression support to comma-style (#9591)
  • 4f898c7 Build: Fix JSDoc syntax errors (#9813)
  • 13bcf3c Fix: Removing curly quotes in no-eq-null report message (#9852)
  • b96fb31 Docs: configuration hierarchy for CLIEngine options (fixes #9526) (#9855)
  • 8ccbdda Docs: Clarify that -c configs merge with .eslintrc.* (fixes #9535) (#9847)
  • 978574f Docs: Fix examples for no-useless-escape (#9853)
  • cd5681d Chore: Deactivate consistent-docs-url in internal rules folder (#9815)
  • 2e87ddd Docs: Sync messageId examples' style with other examples (#9816)
  • 1d61930 Update: use doctrine range information in valid-jsdoc (#9831)
  • 133336e Update: fix indent behavior on template literal arguments (fixes #9061) (#9820)
  • ea1b15d Fix: avoid crashing on malformed configuration comments (fixes #9373) (#9819)
  • add1e70 Update: fix indent bug on comments in ternary expressions (fixes #9729) (#9818)

There are 22 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of sinon is breaking the build 🚨

☝️ Greenkeeper’s updated Terms of Service will come into effect on April 6th, 2018.

Version 4.4.1 of sinon was just published.

Branch Build failing 🚨
Dependency sinon
Current Version 4.4.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

sinon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 9 commits.

  • c105a46 Update docs/changelog.md and set new release id in docs/_config.yml
  • 432a284 Add release documentation for v4.4.1
  • 9b4870e 4.4.1
  • a14d96f Update History.md and AUTHORS for new release
  • ae22a33 merge doc changes to released versions
  • 4cf8a83 correct eslint statements
  • 7380a03 add tests to verify asserts on spyCalls
  • 6e7e71f Update docs
  • cbc5667 Document that it is allowed to assert on dedicated spy calls.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of np is breaking the build 🚨

Version 2.20.0 of np was just published.

Branch Build failing 🚨
Dependency np
Current Version 2.19.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

np is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 3 commits.

  • 8f2537f 2.20.0
  • 263b0c3 Linkify commits - fixes #233 (#234)
  • d63f917 Don't run version script twice when publishing with Yarn (#235)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of babel-eslint is breaking the build 🚨

Version 8.2.1 of babel-eslint was just published.

Branch Build failing 🚨
Dependency babel-eslint
Current Version 8.2.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

babel-eslint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 2 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of eslint is breaking the build 🚨

Version 4.18.0 of eslint was just published.

Branch Build failing 🚨
Dependency eslint
Current Version 4.17.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

eslint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 14 commits.

  • 883a2a2 4.18.0
  • 89d55ca Build: changelog update for 4.18.0
  • 70f22f3 Chore: Apply memoization to config creation within glob utils (#9944)
  • 0e4ae22 Update: fix indent bug with binary operators/ignoredNodes (fixes #9882) (#9951)
  • 47ac478 Update: add named imports and exports for object-curly-newline (#9876)
  • e8efdd0 Fix: support Rest/Spread Properties (fixes #9885) (#9943)
  • f012b8c Fix: support Async iteration (fixes #9891) (#9957)
  • 74fa253 Docs: Clarify no-mixed-operators options (fixes #9962) (#9964)
  • 426868f Docs: clean up key-spacing docs (fixes #9900) (#9963)
  • 4a6f22e Update: support eslint-disable-* block comments (fixes #8781) (#9745)
  • 777283b Docs: Propose fix typo for function (#9965)
  • bf3d494 Docs: Fix typo in max-len ignorePattern example. (#9956)
  • d64fbb4 Docs: fix typo in prefer-destructuring.md example (#9930)
  • f8d343f Chore: Fix default issue template (#9946)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of jasmine is breaking the build 🚨

Version 2.7.0 of jasmine just got published.

Branch Build failing 🚨
Dependency jasmine
Current Version 2.6.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

jasmine is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Release Notes 2.7.0

Please see the release notes.

Commits

The new version differs by 5 commits.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

browser.debug() times out

In theory you should be able to call brower.debug() to manually inspect the browser state continue when you are ready by pressing enter at the console.
http://webdriver.io/api/utility/debug.html

I get that async tests shouldn't wait forever, but it would be nice if there was a way to disable this automatic timeout when debugging.

Avoid requiring node-fibers when sync == false

We enjoy using jasmine with WebdriverIO. We prefer to use async/await over the synchronous code with node-fibers and therefore have set sync: false in our config. With the change to node 7 we had issues with node-fibers binding not being compatible. I looked through some issues and found that others had problems with fibers as well.

Would it be possible to avoid requiring node-fibers (or wdio-sync) if synchronous mode is disabled anyways? I understand that it needs to be in the dependencies, but I imagine it wouldn't need to be required.

I am happy to provide a PR if you think this is a good idea. Any pointers to code are appreciated. Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.