{"action":"created","issue":{"url":"https://api.github.com/repos/redstone-dart/redstone_mapper/issues/20","repository_url":"https://api.github.com/repos/redstone-dart/redstone_mapper","labels_url":"https://api.github.com/repos/redstone-dart/redstone_mapper/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/redstone-dart/redstone_mapper/issues/20/comments","events_url":"https://api.github.com/repos/redstone-dart/redstone_mapper/issues/20/events","html_url":"https://github.com/redstone-dart/redstone_mapper/pull/20","id":153732618,"number":20,"title":"Test transformers for targeting browser","user":{"login":"sestegra","id":109060,"avatar_url":"https://avatars.githubusercontent.com/u/109060?v=3","gravatar_id":"","url":"https://api.github.com/users/sestegra","html_url":"https://github.com/sestegra","followers_url":"https://api.github.com/users/sestegra/followers","following_url":"https://api.github.com/users/sestegra/following{/other_user}","gists_url":"https://api.github.com/users/sestegra/gists{/gist_id}","starred_url":"https://api.github.com/users/sestegra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sestegra/subscriptions","organizations_url":"https://api.github.com/users/sestegra/orgs","repos_url":"https://api.github.com/users/sestegra/repos","events_url":"https://api.github.com/users/sestegra/events{/privacy}","received_events_url":"https://api.github.com/users/sestegra/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-09T09:06:04Z","updated_at":"2016-05-13T11:21:05Z","closed_at":"2016-05-13T11:21:00Z","pull_request":{"url":"https://api.github.com/repos/redstone-dart/redstone_mapper/pulls/20","html_url":"https://github.com/redstone-dart/redstone_mapper/pull/20","diff_url":"https://github.com/redstone-dart/redstone_mapper/pull/20.diff","patch_url":"https://github.com/redstone-dart/redstone_mapper/pull/20.patch"},"body":"After trying following commands in order to test browser target, I found issue on type creation. \r\n```\r\n$ pub serve\r\n$ pub run test --pub-serve=8080 -p chrome\r\n```\r\n\r\nThen, current travis-ci.yml file only targets server mode.\r\nHow to define tests to target browser mode as well ?\r\n\r\nFinally, there is still an issue (only with static mapper), but it's quite difficult to test transformers.\r\nDo you have some procedure to debug when pub serve is running ?\r\n```\r\n00:04 +4 -1: test/client_test.dart: Encode: Mixin                                                  \r\n  Expected: {'id': 'me', 'username': 'Alice', 'password': 'thereisnone'}\r\n    Actual: {}\r\n     Which: has different length and is missing map key 'id'\r\n  \r\n  package:test                expect\r\n  src/common_tests.dart 65:7  installCommonTests.<fn>.<fn>\r\n  \r\n00:05 +9 -2: test/client_test.dart: Decode: Mixin                                                  \r\n  Expected: '    id:       me\\n'\r\n    '    username: Alice\\n'\r\n    '    password: thereisnone'\r\n    Actual: '    id:       null\\n'\r\n    '    username: null\\n'\r\n    '    password: null'\r\n     Which: is different.\r\n  Expected: ... id:       me\\n    us ...\r\n    Actual: ... id:       null\\n     ...\r\n                          ^\r\n   Differ at offset 14\r\n  \r\n  package:test                 expect\r\n  src/common_tests.dart 156:7  installCommonTests.<fn>.<fn>\r\n  \r\n00:05 +12 -2: Some tests failed.\r\n```"},"comment":{"url":"https://api.github.com/repos/redstone-dart/redstone_mapper/issues/comments/219016926","html_url":"https://github.com/redstone-dart/redstone_mapper/pull/20#issuecomment-219016926","issue_url":"https://api.github.com/repos/redstone-dart/redstone_mapper/issues/20","id":219016926,"user":{"login":"Pacane","id":2762440,"avatar_url":"https://avatars.githubusercontent.com/u/2762440?v=3","gravatar_id":"","url":"https://api.github.com/users/Pacane","html_url":"https://github.com/Pacane","followers_url":"https://api.github.com/users/Pacane/followers","following_url":"https://api.github.com/users/Pacane/following{/other_user}","gists_url":"https://api.github.com/users/Pacane/gists{/gist_id}","starred_url":"https://api.github.com/users/Pacane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pacane/subscriptions","organizations_url":"https://api.github.com/users/Pacane/orgs","repos_url":"https://api.github.com/users/Pacane/repos","events_url":"https://api.github.com/users/Pacane/events{/privacy}","received_events_url":"https://api.github.com/users/Pacane/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T11:21:05Z","updated_at":"2016-05-13T11:21:05Z","body":"Thanks!"}}