{"action":"opened","issue":{"url":"https://api.github.com/repos/RobotLocomotion/drake/issues/8821","repository_url":"https://api.github.com/repos/RobotLocomotion/drake","labels_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/8821/labels{/name}","comments_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/8821/comments","events_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/8821/events","html_url":"https://github.com/RobotLocomotion/drake/issues/8821","id":323663146,"number":8821,"title":"Python unittests should write an XML_OUTPUT_FILE","user":{"login":"jamiesnape","id":3630149,"avatar_url":"https://avatars3.githubusercontent.com/u/3630149?v=4","gravatar_id":"","url":"https://api.github.com/users/jamiesnape","html_url":"https://github.com/jamiesnape","followers_url":"https://api.github.com/users/jamiesnape/followers","following_url":"https://api.github.com/users/jamiesnape/following{/other_user}","gists_url":"https://api.github.com/users/jamiesnape/gists{/gist_id}","starred_url":"https://api.github.com/users/jamiesnape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamiesnape/subscriptions","organizations_url":"https://api.github.com/users/jamiesnape/orgs","repos_url":"https://api.github.com/users/jamiesnape/repos","events_url":"https://api.github.com/users/jamiesnape/events{/privacy}","received_events_url":"https://api.github.com/users/jamiesnape/received_events","type":"User","site_admin":false},"labels":[{"id":777833033,"url":"https://api.github.com/repos/RobotLocomotion/drake/labels/configuration:%20python","name":"configuration: python","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-16T15:06:15Z","updated_at":"2018-05-16T15:06:15Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"We are currently getting very rudimentary output into `test.xml` from the default test runner provided by Bazel. Instead, it would be nice to do something like\r\n\r\n```python\r\nimport os\r\nimport unittest\r\nimport xmlrunner\r\n\r\nif __name__ == '__main__':\r\n    with open(os.environ['XML_OUTPUT_FILE'], 'wb') as output:\r\n        unittest.main(testRunner=xmlrunner.XMLTestRunner(output=output))\r\n```\r\n\r\n(or use a different test runner, there are lots of choices, Bazel for its own testing uses a shell script for whatever reason) to get a similar level of detail to the C++ GTests. This would be helpful for the next generation of Jenkins jobs."}}
{"actor":{"display_login":"jamiesnape"}}