{"action":"created","issue":{"url":"https://api.github.com/repos/gextech/grunt-nightwatch/issues/46","labels_url":"https://api.github.com/repos/gextech/grunt-nightwatch/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/gextech/grunt-nightwatch/issues/46/comments","events_url":"https://api.github.com/repos/gextech/grunt-nightwatch/issues/46/events","html_url":"https://github.com/gextech/grunt-nightwatch/issues/46","id":70627371,"number":46,"title":"How to define targets","user":{"login":"Jandalf","id":625043,"avatar_url":"https://avatars.githubusercontent.com/u/625043?v=3","gravatar_id":"","url":"https://api.github.com/users/Jandalf","html_url":"https://github.com/Jandalf","followers_url":"https://api.github.com/users/Jandalf/followers","following_url":"https://api.github.com/users/Jandalf/following{/other_user}","gists_url":"https://api.github.com/users/Jandalf/gists{/gist_id}","starred_url":"https://api.github.com/users/Jandalf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jandalf/subscriptions","organizations_url":"https://api.github.com/users/Jandalf/orgs","repos_url":"https://api.github.com/users/Jandalf/repos","events_url":"https://api.github.com/users/Jandalf/events{/privacy}","received_events_url":"https://api.github.com/users/Jandalf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-24T08:36:15Z","updated_at":"2015-11-18T20:59:12Z","closed_at":null,"body":"How to I override options for a specific target?\r\nI have the following in my Gruntfile:\r\n\r\n```javascript\r\nnightwatch: {\r\n    options: {\r\n        standalone: true,\r\n        src_folders: ['config/grunt/tests'],\r\n        jar_path: '<%= path.references %>/selenium/selenium-server-standalone-2.45.0.jar',\r\n        selenium: {\r\n            start_process: true,\r\n            server_path: '<%= path.references %>/selenium/selenium-server-standalone-2.45.0.jar',\r\n            host: '127.0.0.1',\r\n            port: 4444,\r\n            cli_args: {\r\n                'webdriver.chrome.driver': '<%= path.references %>/selenium/chromedriver.exe',\r\n                'webdriver.ie.driver': '<%= path.references %>/selenium/IEDriverServer.exe'\r\n            }\r\n        },\r\n        test_settings: {\r\n            default: {\r\n                selenium_host: '127.0.0.1',\r\n                selenium_port: 4444,\r\n                desiredCapabilities: {\r\n                    browserName: 'chrome',\r\n                    javascriptEnabled: true,\r\n                    acceptSslCerts: true\r\n                }\r\n            },\r\n            google: {\r\n                src_folders: ['config/grunt/tests/google']\r\n            }\r\n        },\r\n        google: {\r\n            src_folders: ['config/grunt/tests/google']\r\n        }\r\n    },\r\n    google: {\r\n        src_folders: ['config/grunt/tests/google']\r\n    }\r\n}\r\n```\r\n\r\nif I run `grunt nightwatch` my 2 tests will run\r\nif I run `grunt nightwatch:google` also both tests run\r\n\r\nHow should I define targets to override properties?"},"comment":{"url":"https://api.github.com/repos/gextech/grunt-nightwatch/issues/comments/157861629","html_url":"https://github.com/gextech/grunt-nightwatch/issues/46#issuecomment-157861629","issue_url":"https://api.github.com/repos/gextech/grunt-nightwatch/issues/46","id":157861629,"user":{"login":"cactusme","id":1963538,"avatar_url":"https://avatars.githubusercontent.com/u/1963538?v=3","gravatar_id":"","url":"https://api.github.com/users/cactusme","html_url":"https://github.com/cactusme","followers_url":"https://api.github.com/users/cactusme/followers","following_url":"https://api.github.com/users/cactusme/following{/other_user}","gists_url":"https://api.github.com/users/cactusme/gists{/gist_id}","starred_url":"https://api.github.com/users/cactusme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cactusme/subscriptions","organizations_url":"https://api.github.com/users/cactusme/orgs","repos_url":"https://api.github.com/users/cactusme/repos","events_url":"https://api.github.com/users/cactusme/events{/privacy}","received_events_url":"https://api.github.com/users/cactusme/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T20:59:12Z","updated_at":"2015-11-18T20:59:12Z","body":"Verified it's good now"}}