{"action":"created","issue":{"url":"https://api.github.com/repos/ljvmiranda921/pyswarms/issues/211","repository_url":"https://api.github.com/repos/ljvmiranda921/pyswarms","labels_url":"https://api.github.com/repos/ljvmiranda921/pyswarms/issues/211/labels{/name}","comments_url":"https://api.github.com/repos/ljvmiranda921/pyswarms/issues/211/comments","events_url":"https://api.github.com/repos/ljvmiranda921/pyswarms/issues/211/events","html_url":"https://github.com/ljvmiranda921/pyswarms/issues/211","id":349820858,"node_id":"MDU6SXNzdWUzNDk4MjA4NTg=","number":211,"title":"Add the hypothesis module to the test suite","user":{"login":"whzup","id":39431903,"node_id":"MDQ6VXNlcjM5NDMxOTAz","avatar_url":"https://avatars3.githubusercontent.com/u/39431903?v=4","gravatar_id":"","url":"https://api.github.com/users/whzup","html_url":"https://github.com/whzup","followers_url":"https://api.github.com/users/whzup/followers","following_url":"https://api.github.com/users/whzup/following{/other_user}","gists_url":"https://api.github.com/users/whzup/gists{/gist_id}","starred_url":"https://api.github.com/users/whzup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whzup/subscriptions","organizations_url":"https://api.github.com/users/whzup/orgs","repos_url":"https://api.github.com/users/whzup/repos","events_url":"https://api.github.com/users/whzup/events{/privacy}","received_events_url":"https://api.github.com/users/whzup/received_events","type":"User","site_admin":false},"labels":[{"id":961920752,"node_id":"MDU6TGFiZWw5NjE5MjA3NTI=","url":"https://api.github.com/repos/ljvmiranda921/pyswarms/labels/unit%20tests","name":"unit tests","color":"f9e22f","default":false},{"id":1016681578,"node_id":"MDU6TGFiZWwxMDE2NjgxNTc4","url":"https://api.github.com/repos/ljvmiranda921/pyswarms/labels/v.0.4.0","name":"v.0.4.0","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":{"login":"whzup","id":39431903,"node_id":"MDQ6VXNlcjM5NDMxOTAz","avatar_url":"https://avatars3.githubusercontent.com/u/39431903?v=4","gravatar_id":"","url":"https://api.github.com/users/whzup","html_url":"https://github.com/whzup","followers_url":"https://api.github.com/users/whzup/followers","following_url":"https://api.github.com/users/whzup/following{/other_user}","gists_url":"https://api.github.com/users/whzup/gists{/gist_id}","starred_url":"https://api.github.com/users/whzup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whzup/subscriptions","organizations_url":"https://api.github.com/users/whzup/orgs","repos_url":"https://api.github.com/users/whzup/repos","events_url":"https://api.github.com/users/whzup/events{/privacy}","received_events_url":"https://api.github.com/users/whzup/received_events","type":"User","site_admin":false},"assignees":[{"login":"whzup","id":39431903,"node_id":"MDQ6VXNlcjM5NDMxOTAz","avatar_url":"https://avatars3.githubusercontent.com/u/39431903?v=4","gravatar_id":"","url":"https://api.github.com/users/whzup","html_url":"https://github.com/whzup","followers_url":"https://api.github.com/users/whzup/followers","following_url":"https://api.github.com/users/whzup/following{/other_user}","gists_url":"https://api.github.com/users/whzup/gists{/gist_id}","starred_url":"https://api.github.com/users/whzup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whzup/subscriptions","organizations_url":"https://api.github.com/users/whzup/orgs","repos_url":"https://api.github.com/users/whzup/repos","events_url":"https://api.github.com/users/whzup/events{/privacy}","received_events_url":"https://api.github.com/users/whzup/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2018-08-12T15:25:45Z","updated_at":"2018-08-16T04:15:10Z","closed_at":null,"author_association":"COLLABORATOR","body":"Since we had some issues with testing in the past, I propose that we include the [`hypothesis` module for Python](https://github.com/HypothesisWorks/hypothesis/tree/master/hypothesis-python) into our test suite. Side by side with the `pytest` module we're already running as it is [compatible with `pytest`](https://hypothesis.readthedocs.io/en/latest/supported.html). The `hypothesis` module allows us to cover a broader range in our parametrization and checks edge cases. As they say it on their page:\r\n > It lets you write tests which are parametrized by a source of examples, and then generates simple and comprehensible examples that make your tests fail. This lets you find more bugs in your code with less work.\r\n\r\nIt is quite powerful and might help us in finding bugs earlier."},"comment":{"url":"https://api.github.com/repos/ljvmiranda921/pyswarms/issues/comments/413420397","html_url":"https://github.com/ljvmiranda921/pyswarms/issues/211#issuecomment-413420397","issue_url":"https://api.github.com/repos/ljvmiranda921/pyswarms/issues/211","id":413420397,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzQyMDM5Nw==","user":{"login":"whzup","id":39431903,"node_id":"MDQ6VXNlcjM5NDMxOTAz","avatar_url":"https://avatars3.githubusercontent.com/u/39431903?v=4","gravatar_id":"","url":"https://api.github.com/users/whzup","html_url":"https://github.com/whzup","followers_url":"https://api.github.com/users/whzup/followers","following_url":"https://api.github.com/users/whzup/following{/other_user}","gists_url":"https://api.github.com/users/whzup/gists{/gist_id}","starred_url":"https://api.github.com/users/whzup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whzup/subscriptions","organizations_url":"https://api.github.com/users/whzup/orgs","repos_url":"https://api.github.com/users/whzup/repos","events_url":"https://api.github.com/users/whzup/events{/privacy}","received_events_url":"https://api.github.com/users/whzup/received_events","type":"User","site_admin":false},"created_at":"2018-08-16T04:15:10Z","updated_at":"2018-08-16T04:15:10Z","author_association":"COLLABORATOR","body":"Yes, exactly! But now we use it for the topology tests. We just have to return the history and the best cost/pos in the fixture so we can check if it really is the best that has ever been found. I'll go ahead and write this up. It's probably a small PR."}}
{"actor":{"display_login":"whzup"}}