{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/kibana/issues/16735","repository_url":"https://api.github.com/repos/elastic/kibana","labels_url":"https://api.github.com/repos/elastic/kibana/issues/16735/labels{/name}","comments_url":"https://api.github.com/repos/elastic/kibana/issues/16735/comments","events_url":"https://api.github.com/repos/elastic/kibana/issues/16735/events","html_url":"https://github.com/elastic/kibana/pull/16735","id":297139994,"number":16735,"title":"Introduce Jest integration tests.","user":{"login":"azasypkin","id":1713708,"avatar_url":"https://avatars1.githubusercontent.com/u/1713708?v=4","gravatar_id":"","url":"https://api.github.com/users/azasypkin","html_url":"https://github.com/azasypkin","followers_url":"https://api.github.com/users/azasypkin/followers","following_url":"https://api.github.com/users/azasypkin/following{/other_user}","gists_url":"https://api.github.com/users/azasypkin/gists{/gist_id}","starred_url":"https://api.github.com/users/azasypkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azasypkin/subscriptions","organizations_url":"https://api.github.com/users/azasypkin/orgs","repos_url":"https://api.github.com/users/azasypkin/repos","events_url":"https://api.github.com/users/azasypkin/events{/privacy}","received_events_url":"https://api.github.com/users/azasypkin/received_events","type":"User","site_admin":false},"labels":[{"id":470241342,"url":"https://api.github.com/repos/elastic/kibana/labels/:Operations","name":":Operations","color":"fef2c0","default":false},{"id":140008186,"url":"https://api.github.com/repos/elastic/kibana/labels/test","name":"test","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-14T15:36:25Z","updated_at":"2018-02-14T18:20:52Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/elastic/kibana/pulls/16735","html_url":"https://github.com/elastic/kibana/pull/16735","diff_url":"https://github.com/elastic/kibana/pull/16735.diff","patch_url":"https://github.com/elastic/kibana/pull/16735.patch"},"body":"We'd like to use Jest not only for light unit tests, but for potentially slow integration-like tests as well. \r\n\r\nThis PR introduces `scripts/jest_integration.js` that runs only `*.integration_test.js` Jest tests (e.g. `kbn-build/src/production/build_production_projects.integration_test.js`) and keeps `script/jest.js` for fast `*.test.js` Jest unit tests."},"comment":{"url":"https://api.github.com/repos/elastic/kibana/issues/comments/365698118","html_url":"https://github.com/elastic/kibana/pull/16735#issuecomment-365698118","issue_url":"https://api.github.com/repos/elastic/kibana/issues/16735","id":365698118,"user":{"login":"epixa","id":53814,"avatar_url":"https://avatars0.githubusercontent.com/u/53814?v=4","gravatar_id":"","url":"https://api.github.com/users/epixa","html_url":"https://github.com/epixa","followers_url":"https://api.github.com/users/epixa/followers","following_url":"https://api.github.com/users/epixa/following{/other_user}","gists_url":"https://api.github.com/users/epixa/gists{/gist_id}","starred_url":"https://api.github.com/users/epixa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epixa/subscriptions","organizations_url":"https://api.github.com/users/epixa/orgs","repos_url":"https://api.github.com/users/epixa/repos","events_url":"https://api.github.com/users/epixa/events{/privacy}","received_events_url":"https://api.github.com/users/epixa/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T18:20:52Z","updated_at":"2018-02-14T18:20:52Z","author_association":"OWNER","body":"I think integration tests should be separated out into a specific place, like we've done for all the selenium/api integration tests. Scattering unit tests throughout the code makes sense because those test individual units of code, but integration tests test scenarios, and it's useful to be able to look a file system hierarchy to see what sort of scenarios are covered.\r\n\r\nThat doesn't mean all integration tests need to be at the root of the repo necessarily, but I would expect to be able to go into any specific plugin and see integration tests for its plugin contracts in a consistent place, for example.  This could be as simple as putting a `test` directory at the root of the plugin, sort of like we do with the repo itself.\r\n\r\nThoughts?"}}
{"actor":{"display_login":"epixa"}}