Sotir
Sotir

Reputation: 13

Chimp.js configuration

I am using Chimp.js(with Cucumber.js) and all the tests need to pass a login page.

I know webdriverIO uses testrunner config file for something like .before() and .after().

How would be the best way to achieve that with Chimp?

Thanks!

Upvotes: 0

Views: 611

Answers (1)

Thomas van Lankveld
Thomas van Lankveld

Reputation: 81

You can use Cucumber.js before and after hooks with Chimp:

// tests/features/clearDatabase.js
var clearDatabase = function() {

  this.Before(function() {
    server.call('/fixtures/clearDatabase');
  });

};

module.exports = clearDatabase;

Upvotes: 1

Related Questions