{"action":"created","issue":{"url":"https://api.github.com/repos/iovation/launchkey-python/issues/21","repository_url":"https://api.github.com/repos/iovation/launchkey-python","labels_url":"https://api.github.com/repos/iovation/launchkey-python/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/iovation/launchkey-python/issues/21/comments","events_url":"https://api.github.com/repos/iovation/launchkey-python/issues/21/events","html_url":"https://github.com/iovation/launchkey-python/issues/21","id":361919854,"node_id":"MDU6SXNzdWUzNjE5MTk4NTQ=","number":21,"title":"Speed Up Unit Tests","user":{"login":"aenglander","id":328648,"node_id":"MDQ6VXNlcjMyODY0OA==","avatar_url":"https://avatars2.githubusercontent.com/u/328648?v=4","gravatar_id":"","url":"https://api.github.com/users/aenglander","html_url":"https://github.com/aenglander","followers_url":"https://api.github.com/users/aenglander/followers","following_url":"https://api.github.com/users/aenglander/following{/other_user}","gists_url":"https://api.github.com/users/aenglander/gists{/gist_id}","starred_url":"https://api.github.com/users/aenglander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aenglander/subscriptions","organizations_url":"https://api.github.com/users/aenglander/orgs","repos_url":"https://api.github.com/users/aenglander/repos","events_url":"https://api.github.com/users/aenglander/events{/privacy}","received_events_url":"https://api.github.com/users/aenglander/received_events","type":"User","site_admin":false},"labels":[{"id":45986463,"node_id":"MDU6TGFiZWw0NTk4NjQ2Mw==","url":"https://api.github.com/repos/iovation/launchkey-python/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-19T20:43:34Z","updated_at":"2018-12-06T22:40:25Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The tests are now taking over 10 seconds to run. They used to take 4 seconds. Not a huge priority but this could get out of hand quickly."},"comment":{"url":"https://api.github.com/repos/iovation/launchkey-python/issues/comments/445056384","html_url":"https://github.com/iovation/launchkey-python/issues/21#issuecomment-445056384","issue_url":"https://api.github.com/repos/iovation/launchkey-python/issues/21","id":445056384,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTA1NjM4NA==","user":{"login":"bgroveben","id":2719094,"node_id":"MDQ6VXNlcjI3MTkwOTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2719094?v=4","gravatar_id":"","url":"https://api.github.com/users/bgroveben","html_url":"https://github.com/bgroveben","followers_url":"https://api.github.com/users/bgroveben/followers","following_url":"https://api.github.com/users/bgroveben/following{/other_user}","gists_url":"https://api.github.com/users/bgroveben/gists{/gist_id}","starred_url":"https://api.github.com/users/bgroveben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgroveben/subscriptions","organizations_url":"https://api.github.com/users/bgroveben/orgs","repos_url":"https://api.github.com/users/bgroveben/repos","events_url":"https://api.github.com/users/bgroveben/events{/privacy}","received_events_url":"https://api.github.com/users/bgroveben/received_events","type":"User","site_admin":false},"created_at":"2018-12-06T22:40:25Z","updated_at":"2018-12-06T22:40:25Z","author_association":"CONTRIBUTOR","body":"@aenglander I tried some other test runners and got typical runtimes for:\r\n\r\n```$ python3 -m unittest``` \r\n```\r\n>>>\r\n ...............  Ran 511 tests in 10.917s  \r\n```  \r\n  \r\n```$ python3 -m pytest```\r\n```\r\n>>> \r\ntests/test_base_client.py .........                                      [  1%]\r\ntests/test_base_transport.py ...                                         [  2%]\r\ntests/test_directory_client.py ......................................... [ 10%]\r\n.....................................                                    [ 17%]\r\ntests/test_factories.py ...........                                      [ 19%]\r\ntests/test_jose_auth_transport.py ...................................... [ 27%]\r\n................................................................         [ 39%]\r\ntests/test_organization_client.py ...................................... [ 47%]\r\n................................................................         [ 59%]\r\ntests/test_requests_http_transport.py ............                       [ 62%]\r\ntests/test_service_client.py ........................................... [ 70%]\r\n......................................................................   [ 84%]\r\ntests/test_service_security_policy.py ...............                    [ 87%]\r\ntests/test_utils.py .................................................... [ 97%]\r\n......                                                                   [ 98%]\r\ntests/test_validation.py ........                                        [100%]\r\n\r\n========================= 511 passed in 12.50 seconds ==========================\r\n```  \r\n\r\n\r\n```$ stestr run```  \r\n```\r\n>>> .....\r\n======\r\nTotals\r\n======\r\nRan: 511 tests in 3.7929 sec.\r\n - Passed: 511\r\n - Skipped: 0\r\n - Expected Fail: 0\r\n - Unexpected Success: 0\r\n - Failed: 0\r\nSum of execute time for each test: 25.1350 sec.\r\n\r\n==============\r\nWorker Balance\r\n==============\r\n - Worker 0 (58 tests) => 0:00:03.503387\r\n - Worker 1 (63 tests) => 0:00:02.625201\r\n - Worker 2 (64 tests) => 0:00:03.014298\r\n - Worker 3 (65 tests) => 0:00:03.278643\r\n - Worker 4 (65 tests) => 0:00:03.114926\r\n - Worker 5 (65 tests) => 0:00:03.156894\r\n - Worker 6 (66 tests) => 0:00:03.312146\r\n - Worker 7 (65 tests) => 0:00:03.274205\r\n```\r\n\r\nEach test runner's times are fairly consistent, with pytest being the slowest, unittest a bit faster, and stestr much faster."}}
{"actor":{"display_login":"bgroveben"}}