{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/7163","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/7163/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/7163/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/7163/events","html_url":"https://github.com/facebook/jest/issues/7163","id":370010480,"node_id":"MDU6SXNzdWUzNzAwMTA0ODA=","number":7163,"title":"[Proposal] Request to add support for CI/CD pipelines for Test reporting","user":{"login":"nigurr","id":15208679,"node_id":"MDQ6VXNlcjE1MjA4Njc5","avatar_url":"https://avatars2.githubusercontent.com/u/15208679?v=4","gravatar_id":"","url":"https://api.github.com/users/nigurr","html_url":"https://github.com/nigurr","followers_url":"https://api.github.com/users/nigurr/followers","following_url":"https://api.github.com/users/nigurr/following{/other_user}","gists_url":"https://api.github.com/users/nigurr/gists{/gist_id}","starred_url":"https://api.github.com/users/nigurr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nigurr/subscriptions","organizations_url":"https://api.github.com/users/nigurr/orgs","repos_url":"https://api.github.com/users/nigurr/repos","events_url":"https://api.github.com/users/nigurr/events{/privacy}","received_events_url":"https://api.github.com/users/nigurr/received_events","type":"User","site_admin":false},"labels":[{"id":549288633,"node_id":"MDU6TGFiZWw1NDkyODg2MzM=","url":"https://api.github.com/repos/facebook/jest/labels/:rocket:%20Feature%20Request","name":":rocket: Feature Request","color":"bfdadc","default":false},{"id":517619966,"node_id":"MDU6TGFiZWw1MTc2MTk5NjY=","url":"https://api.github.com/repos/facebook/jest/labels/Discussion","name":"Discussion","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2018-10-15T06:02:05Z","updated_at":"2018-10-23T10:47:46Z","closed_at":null,"author_association":"NONE","body":"_Issue:_ \r\n\r\nCurrently Azure DevOps and Circle CI/CD systems provide rich test experience.\r\nIn order to get this experience/track test reporting, users has to explicitly generate test reports (currently supported format JUnit) by 3rd party plugins and publish test results.\r\n\r\nMost of the popular open source projects aren't using 3rd party reporting plugins.\r\nTo keep local development experience and CI/CD build experience similar, scripts to build/test are written to print test results to console (std_out).\r\nTo get richer test experience in CI/CD pipeline, customers has to modify their scripts and often need to add 3rd party plugins.\r\nThis is a steep learning and test reporting is one of the important data that should be easily available for open source github projects.\r\n\r\n_Proposal for solution(s):_\r\n\r\n**Generate test results file based on environment variables**:\r\n     In this approach, test runners will generate test results file along with regular console output if an environment variable is set.\r\n     CI/CD pipelines can set this variable to desired test output location where they can automatically publish test results by consuming test results file generated by test runners (Mocha, Jest, Pytest, Jasmine).\r\n     This simple flag will make sure test runners are not going through any change in behavior in terms of execution or context they are running and users don't require go through any modification to their source/scripts.\r\n\r\nHappy to listen to community feedback. Feel free to share other ideas if proposed solution is not feasible one. \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/432197129","html_url":"https://github.com/facebook/jest/issues/7163#issuecomment-432197129","issue_url":"https://api.github.com/repos/facebook/jest/issues/7163","id":432197129,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjE5NzEyOQ==","user":{"login":"SimenB","id":1404810,"node_id":"MDQ6VXNlcjE0MDQ4MTA=","avatar_url":"https://avatars1.githubusercontent.com/u/1404810?v=4","gravatar_id":"","url":"https://api.github.com/users/SimenB","html_url":"https://github.com/SimenB","followers_url":"https://api.github.com/users/SimenB/followers","following_url":"https://api.github.com/users/SimenB/following{/other_user}","gists_url":"https://api.github.com/users/SimenB/gists{/gist_id}","starred_url":"https://api.github.com/users/SimenB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimenB/subscriptions","organizations_url":"https://api.github.com/users/SimenB/orgs","repos_url":"https://api.github.com/users/SimenB/repos","events_url":"https://api.github.com/users/SimenB/events{/privacy}","received_events_url":"https://api.github.com/users/SimenB/received_events","type":"User","site_admin":false},"created_at":"2018-10-23T10:47:46Z","updated_at":"2018-10-23T10:47:46Z","author_association":"COLLABORATOR","body":"I'd prefer some env variable saying \"test reports in this format should go to this directory, coverage in this format to this directory\"."}}
{"actor":{"display_login":"SimenB"}}