Using Grunt Start Webdriver in a project

I am trying to use the Grunt Start Webdriver plugin in my application. At this time, I can’t get it to work. I have a Grunt task setup as shown below:

module.exports = function(grunt) {
  grunt.registerTask('test', [
    'clean:temp',
    'compile:all',
    'copy:tests',
    'webdriver:test',
    'protractor:test'
  ]);
};

Everything works, except for adding webdriver: test. This task is defined in a file called webdriver.js. Its setup looks like this:

module.exports = function(config) {
  return {
    webdriver: {
      options: {
        // Task-specific options go here.
      },
      test: {
        // Target-specific file lists and/or options go here.
      },
    },    
  };
};

When the webdriver: test task is reached, I get an error message:

Verifying property webdriver.test exists in config...ERROR
>> Unable to process task.
Warning: Required config property "webdriver.test" missing. Use --force to continue.

I can not understand where he is looking for a property. Or why it does not work. Can someone give some ideas. My grunt file and jobs are structured in the same way as Kibana, if you're interested.

Thank!

+4
source share

Source: https://habr.com/ru/post/1539827/


All Articles