teerapap / grunt-protractor-runner

A Grunt plugin for running protractor runner.
MIT License
149 stars 123 forks source link

Throwing errors with no configFile define #128

Open Izhaki opened 9 years ago

Izhaki commented 9 years ago

Just wondering...

If I'd like on my configuration to be done via the args parameter, while throw an error if no configFile is defined (yet it works if one provide an empty string).

Example:

    protractor: {
        options: {
            configFile: '', // We need this or we get an error

            noColor: false,

            args: {
                specs: [
                    'client/tests/e2e/*.js'
                ],

                capabilities: {
                    'browserName': 'chrome'
                },

                baseUrl: 'http://http://127.0.0.1:3000/',

                framework: 'jasmine'
            }
        },
        e2e: {
            options: {
                keepAlive: false
            }
        },
        continuous: {
            options: {
                keepAlive: true
            }
        }
    },