{"action":"created","issue":{"url":"https://api.github.com/repos/jquery/esprima/issues/1075","labels_url":"https://api.github.com/repos/jquery/esprima/issues/1075/labels{/name}","comments_url":"https://api.github.com/repos/jquery/esprima/issues/1075/comments","events_url":"https://api.github.com/repos/jquery/esprima/issues/1075/events","html_url":"https://github.com/jquery/esprima/pull/1075","id":58493749,"number":1075,"title":"Unit Tests: break into much smaller files","user":{"login":"ikarienator","id":1472048,"avatar_url":"https://avatars.githubusercontent.com/u/1472048?v=3","gravatar_id":"","url":"https://api.github.com/users/ikarienator","html_url":"https://github.com/ikarienator","followers_url":"https://api.github.com/users/ikarienator/followers","following_url":"https://api.github.com/users/ikarienator/following{/other_user}","gists_url":"https://api.github.com/users/ikarienator/gists{/gist_id}","starred_url":"https://api.github.com/users/ikarienator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikarienator/subscriptions","organizations_url":"https://api.github.com/users/ikarienator/orgs","repos_url":"https://api.github.com/users/ikarienator/repos","events_url":"https://api.github.com/users/ikarienator/events{/privacy}","received_events_url":"https://api.github.com/users/ikarienator/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jquery/esprima/labels/CLA:%20Valid","name":"CLA: Valid","color":"007700"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":36,"created_at":"2015-02-22T07:13:22Z","updated_at":"2015-02-24T03:07:28Z","closed_at":"2015-02-24T03:07:28Z","pull_request":{"url":"https://api.github.com/repos/jquery/esprima/pulls/1075","html_url":"https://github.com/jquery/esprima/pull/1075","diff_url":"https://github.com/jquery/esprima/pull/1075.diff","patch_url":"https://github.com/jquery/esprima/pull/1075.patch"},"body":"Splits `test.js` file into small files, with \"`test/fixtures/{Category}/{Test Name}.{Resource Kind}.(js|json)`\" naming convention. 4 <i>Resource Kind</i>s are used:\r\n\r\n0. `tree`: a JSON file representing the result of a parsing result. RegExps are stringified as `{}`.\r\n0. `tokens`: a JSON file representing the result of a tokenization result.\r\n0. `failure`: a JSON file representing an error as defined in the old `test/test.js` file. Field `tokenize` indicates whether the tests should invoke tokenizer instead of parser.\r\n0. `result`: a JSON file representing the result of an API test.\r\n0. `case`: consists the original source code string of the test.js test case.\r\n0. `source`: an executable ES5 program defining a `source` variable in the global scope. Useful for unicode tests since escapes are visible.\r\n0. `run`: an executable ES5 program. Useful for API tests. The code will be `eval`ed and the result value is used to compare against the expected result of the test case.\r\n\r\nThe migration simply names each test case with `migration_` followed by a number unique within the same folder.\r\n\r\nCloses #1025.\r\n"},"comment":{"url":"https://api.github.com/repos/jquery/esprima/issues/comments/75690532","html_url":"https://github.com/jquery/esprima/pull/1075#issuecomment-75690532","issue_url":"https://api.github.com/repos/jquery/esprima/issues/1075","id":75690532,"user":{"login":"ariya","id":7288,"avatar_url":"https://avatars.githubusercontent.com/u/7288?v=3","gravatar_id":"","url":"https://api.github.com/users/ariya","html_url":"https://github.com/ariya","followers_url":"https://api.github.com/users/ariya/followers","following_url":"https://api.github.com/users/ariya/following{/other_user}","gists_url":"https://api.github.com/users/ariya/gists{/gist_id}","starred_url":"https://api.github.com/users/ariya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariya/subscriptions","organizations_url":"https://api.github.com/users/ariya/orgs","repos_url":"https://api.github.com/users/ariya/repos","events_url":"https://api.github.com/users/ariya/events{/privacy}","received_events_url":"https://api.github.com/users/ariya/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T03:07:28Z","updated_at":"2015-02-24T03:07:28Z","body":"Landed with slightly modified commit message (no `case`). Thank you very much @ikarienator! "}}