{"action":"closed","issue":{"url":"https://api.github.com/repos/SCAII/Sky-RTS/issues/19","repository_url":"https://api.github.com/repos/SCAII/Sky-RTS","labels_url":"https://api.github.com/repos/SCAII/Sky-RTS/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/SCAII/Sky-RTS/issues/19/comments","events_url":"https://api.github.com/repos/SCAII/Sky-RTS/issues/19/events","html_url":"https://github.com/SCAII/Sky-RTS/issues/19","id":306079025,"number":19,"title":"Tests","user":{"login":"LinearZoetrope","id":3078382,"avatar_url":"https://avatars2.githubusercontent.com/u/3078382?v=4","gravatar_id":"","url":"https://api.github.com/users/LinearZoetrope","html_url":"https://github.com/LinearZoetrope","followers_url":"https://api.github.com/users/LinearZoetrope/followers","following_url":"https://api.github.com/users/LinearZoetrope/following{/other_user}","gists_url":"https://api.github.com/users/LinearZoetrope/gists{/gist_id}","starred_url":"https://api.github.com/users/LinearZoetrope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinearZoetrope/subscriptions","organizations_url":"https://api.github.com/users/LinearZoetrope/orgs","repos_url":"https://api.github.com/users/LinearZoetrope/repos","events_url":"https://api.github.com/users/LinearZoetrope/events{/privacy}","received_events_url":"https://api.github.com/users/LinearZoetrope/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"khlam","id":4841220,"avatar_url":"https://avatars1.githubusercontent.com/u/4841220?v=4","gravatar_id":"","url":"https://api.github.com/users/khlam","html_url":"https://github.com/khlam","followers_url":"https://api.github.com/users/khlam/followers","following_url":"https://api.github.com/users/khlam/following{/other_user}","gists_url":"https://api.github.com/users/khlam/gists{/gist_id}","starred_url":"https://api.github.com/users/khlam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khlam/subscriptions","organizations_url":"https://api.github.com/users/khlam/orgs","repos_url":"https://api.github.com/users/khlam/repos","events_url":"https://api.github.com/users/khlam/events{/privacy}","received_events_url":"https://api.github.com/users/khlam/received_events","type":"User","site_admin":false},"assignees":[{"login":"khlam","id":4841220,"avatar_url":"https://avatars1.githubusercontent.com/u/4841220?v=4","gravatar_id":"","url":"https://api.github.com/users/khlam","html_url":"https://github.com/khlam","followers_url":"https://api.github.com/users/khlam/followers","following_url":"https://api.github.com/users/khlam/following{/other_user}","gists_url":"https://api.github.com/users/khlam/gists{/gist_id}","starred_url":"https://api.github.com/users/khlam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khlam/subscriptions","organizations_url":"https://api.github.com/users/khlam/orgs","repos_url":"https://api.github.com/users/khlam/repos","events_url":"https://api.github.com/users/khlam/events{/privacy}","received_events_url":"https://api.github.com/users/khlam/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-03-16T21:15:38Z","updated_at":"2018-05-02T23:13:55Z","closed_at":"2018-05-02T23:13:55Z","author_association":"OWNER","body":"@khlam \r\n\r\nTo add tests, what you'll want is a `test` module within each system, with something like\r\n\r\n```rust\r\nuse specs::prelude::*;\r\n\r\nlet world = World::new();\r\n\r\nworld.register::<Component>();\r\nwourld.register::<AnotherComponent>();\r\nworld.add_resource(SomeResource);\r\n\r\nworld.entities().create_entity().with(AComponent).with(AnotherComponent).build();\r\n\r\nlet sys = super::TheSystem;\r\nsys.run_now(&world.res);\r\n\r\n// now verify the components and resources with `read_resource` and such\r\n```\r\n\r\nYou can see an example of registering components near the top of `resources/mod.rs` and `components/mod.rs`, an example of building an entity at `UnitType::build_entity` in `resources/mod.rs`, and reading resources are scattered over. You can find getting components in various systems."}}
{"actor":{"display_login":"LinearZoetrope"}}