{"action":"created","issue":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/4272","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/4272/labels{/name}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/4272/comments","events_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/4272/events","html_url":"https://github.com/ember-cli/ember-cli/pull/4272","id":86844387,"number":4272,"title":"[ENHANCEMENT] Generate component-tests into `tests/integration` by default","user":{"login":"trabus","id":324797,"avatar_url":"https://avatars.githubusercontent.com/u/324797?v=3","gravatar_id":"","url":"https://api.github.com/users/trabus","html_url":"https://github.com/trabus","followers_url":"https://api.github.com/users/trabus/followers","following_url":"https://api.github.com/users/trabus/following{/other_user}","gists_url":"https://api.github.com/users/trabus/gists{/gist_id}","starred_url":"https://api.github.com/users/trabus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trabus/subscriptions","organizations_url":"https://api.github.com/users/trabus/orgs","repos_url":"https://api.github.com/users/trabus/repos","events_url":"https://api.github.com/users/trabus/events{/privacy}","received_events_url":"https://api.github.com/users/trabus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ember-cli/ember-cli/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-10T05:22:22Z","updated_at":"2015-06-10T17:59:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/4272","html_url":"https://github.com/ember-cli/ember-cli/pull/4272","diff_url":"https://github.com/ember-cli/ember-cli/pull/4272.diff","patch_url":"https://github.com/ember-cli/ember-cli/pull/4272.patch"},"body":"resolves #4178\r\nBy default component-tests now generate into `tests/integration`, with a new `--test-type` option allowing you to generate as a unit test intstead. The `--test-type` option can only be `unit` or `integration` and has the aliases `-unit`, `-u`, `-integration`, and `-i`.\r\n```\r\nember g component-test foo-bar -unit\r\n```\r\n\r\nThis PR also adds support for using an array of possible values as a command option type, accepting only the values in the array as valid arguments (essentially an enum type). For example, this is what the option for `test-type` looks like:\r\n\r\n```\r\n  availableOptions: [\r\n    {\r\n      name: 'test-type',\r\n      type: ['integration', 'unit'],\r\n      default: 'integration',\r\n      aliases:[\r\n        { 'i': 'integration'},\r\n        { 'u': 'unit'},\r\n        { 'integration': 'integration' },\r\n        { 'unit': 'unit' }\r\n      ]\r\n    }\r\n  ]\r\n```"},"comment":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/comments/110855946","html_url":"https://github.com/ember-cli/ember-cli/pull/4272#issuecomment-110855946","issue_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/4272","id":110855946,"user":{"login":"stefanpenner","id":1377,"avatar_url":"https://avatars.githubusercontent.com/u/1377?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanpenner","html_url":"https://github.com/stefanpenner","followers_url":"https://api.github.com/users/stefanpenner/followers","following_url":"https://api.github.com/users/stefanpenner/following{/other_user}","gists_url":"https://api.github.com/users/stefanpenner/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanpenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanpenner/subscriptions","organizations_url":"https://api.github.com/users/stefanpenner/orgs","repos_url":"https://api.github.com/users/stefanpenner/repos","events_url":"https://api.github.com/users/stefanpenner/events{/privacy}","received_events_url":"https://api.github.com/users/stefanpenner/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T17:59:05Z","updated_at":"2015-06-10T17:59:05Z","body":"left one comment, it may be a valid concern. Otherwise though, LGTM"}}