Skip to content

Protractor throws an error when running grunt in debug mode. #70

@mdasberg

Description

@mdasberg

When running grunt in debug mode ie: grunt .... -d (or --debug)
the following error occurs:

Collector started on port 9904
Usage: protractor [configFile] [options]
configFile defaults to protractor.conf.js
The [options] object will override values from the config file.
See the reference config for a full list of options.


Options:
  --help                                 Print Protractor help menu                               
  --version                              Print Protractor version                                 
  --browser, --capabilities.browserName  Browsername, e.g. chrome or firefox                      
  --seleniumAddress                      A running selenium address to use                        
  --seleniumSessionId                    Attaching an existing session id                         
  --seleniumServerJar                    Location of the standalone selenium jar file             
  --seleniumPort                         Optional port for the selenium standalone server         
  --baseUrl                              URL to prepend to all relative paths                     
  --rootElement                          Element housing ng-app, if not html or body              
  --specs                                Comma-separated list of files to test                    
  --exclude                              Comma-separated list of files to exclude                 
  --verbose                              Print full spec names                                    
  --stackTrace                           Print stack trace on error                               
  --params                               Param object to be passed to the tests                   
  --framework                            Test framework to use: jasmine, mocha, or custom         
  --resultJsonOutputFile                 Path to save JSON test result                            
  --troubleshoot                         Turn on troubleshooting output                           
  --elementExplorer                      Interactively test Protractor commands                   
  --debuggerServerPort                   Start a debugger server at specified port instead of repl
  --disableChecks                        disable cli checks                                       

Error: Error: more than one config file specified
......

Because grunt.option.flags() results into --debug=1, which is invalid as protractor will be spawned with --debug 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions