{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/docs/issues/961","labels_url":"https://api.github.com/repos/Polymer/docs/issues/961/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/docs/issues/961/comments","events_url":"https://api.github.com/repos/Polymer/docs/issues/961/events","html_url":"https://github.com/Polymer/docs/issues/961","id":62193291,"number":961,"title":"How to Unit Testing Polymer Elements in a more typical app structure?","user":{"login":"davidmaxwaterman","id":975698,"avatar_url":"https://avatars.githubusercontent.com/u/975698?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmaxwaterman","html_url":"https://github.com/davidmaxwaterman","followers_url":"https://api.github.com/users/davidmaxwaterman/followers","following_url":"https://api.github.com/users/davidmaxwaterman/following{/other_user}","gists_url":"https://api.github.com/users/davidmaxwaterman/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmaxwaterman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmaxwaterman/subscriptions","organizations_url":"https://api.github.com/users/davidmaxwaterman/orgs","repos_url":"https://api.github.com/users/davidmaxwaterman/repos","events_url":"https://api.github.com/users/davidmaxwaterman/events{/privacy}","received_events_url":"https://api.github.com/users/davidmaxwaterman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"addyosmani","id":110953,"avatar_url":"https://avatars.githubusercontent.com/u/110953?v=3","gravatar_id":"","url":"https://api.github.com/users/addyosmani","html_url":"https://github.com/addyosmani","followers_url":"https://api.github.com/users/addyosmani/followers","following_url":"https://api.github.com/users/addyosmani/following{/other_user}","gists_url":"https://api.github.com/users/addyosmani/gists{/gist_id}","starred_url":"https://api.github.com/users/addyosmani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/addyosmani/subscriptions","organizations_url":"https://api.github.com/users/addyosmani/orgs","repos_url":"https://api.github.com/users/addyosmani/repos","events_url":"https://api.github.com/users/addyosmani/events{/privacy}","received_events_url":"https://api.github.com/users/addyosmani/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2015-03-16T19:59:09Z","updated_at":"2015-03-20T22:35:07Z","closed_at":null,"body":"The usual app structure is :\r\n\r\n```\r\napp/\r\nbower.json\r\npackage.json\r\nGruntfile.js\r\nREADME.md\r\ntest/\r\n```\r\n\r\nThe tests for the entire app are in test/ and the *source* for the app is in app/. It is typical for there to be no generated files in app/ at all, and certainly no tests.\r\n\r\nTo test, we cd to the root of the project and run `grunt test` or something like that. This will run all the tests, and I wish for this to include the tests on the polymer elements (aside, is there a grunt task for wct?).\r\n\r\nReading the guide :\r\n\r\n<https://www.polymer-project.org/0.5/articles/unit-testing-elements.html>\r\n\r\nit is unclear how to adopt wct into the above app directory hierarchy. Perhaps something could be added to help?\r\n\r\nIn the meantime, if someone has some pointers to help me do so, I'd be grateful :)"},"comment":{"url":"https://api.github.com/repos/Polymer/docs/issues/comments/84170665","html_url":"https://github.com/Polymer/docs/issues/961#issuecomment-84170665","issue_url":"https://api.github.com/repos/Polymer/docs/issues/961","id":84170665,"user":{"login":"davidmaxwaterman","id":975698,"avatar_url":"https://avatars.githubusercontent.com/u/975698?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmaxwaterman","html_url":"https://github.com/davidmaxwaterman","followers_url":"https://api.github.com/users/davidmaxwaterman/followers","following_url":"https://api.github.com/users/davidmaxwaterman/following{/other_user}","gists_url":"https://api.github.com/users/davidmaxwaterman/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmaxwaterman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmaxwaterman/subscriptions","organizations_url":"https://api.github.com/users/davidmaxwaterman/orgs","repos_url":"https://api.github.com/users/davidmaxwaterman/repos","events_url":"https://api.github.com/users/davidmaxwaterman/events{/privacy}","received_events_url":"https://api.github.com/users/davidmaxwaterman/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T22:35:07Z","updated_at":"2015-03-20T22:35:07Z","body":"Agreed, it'd be great even with app/test/. Good to know about the new generator too."}}