{"_id":"55fd9c6e56d6990d00a6caa5","user":"54d64e31276f8e0d00feab94","__v":0,"category":{"_id":"55fd9c6e56d6990d00a6caa0","version":"55fd9c6d56d6990d00a6ca9d","__v":1,"project":"54d64e6b276f8e0d00feab95","pages":["55fd9c6e56d6990d00a6caa1","55fd9c6e56d6990d00a6caa2","55fd9c6e56d6990d00a6caa3","55fd9c6e56d6990d00a6caa4","55fd9c6e56d6990d00a6caa5","55fd9c6e56d6990d00a6caa6","55fd9c6e56d6990d00a6caa7","55fd9c6e56d6990d00a6caa8"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-02-07T18:14:40.771Z","from_sync":false,"order":2,"slug":"your-application","title":"Your Application"},"project":"54d64e6b276f8e0d00feab95","version":{"_id":"55fd9c6d56d6990d00a6ca9d","project":"54d64e6b276f8e0d00feab95","__v":1,"createdAt":"2015-09-19T17:33:33.368Z","releaseDate":"2015-09-19T17:33:33.368Z","categories":["55fd9c6e56d6990d00a6ca9e","55fd9c6e56d6990d00a6ca9f","55fd9c6e56d6990d00a6caa0"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.4.0","version":"1.4.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-02-07T17:55:17.547Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"TDD is easy with angular-kick. Unit-tests are automatically generated with each controller, service, directive or filter generated. You can either run test suit once\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Test Results\",\n  \"body\": \"After each test run, an HTML file with test results will be generated.\\n\\nYou can find this file in `/test/resutls` directory\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$ kick test\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\nor run continuous testing along with the browser-sync server:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$ kick server:tdd\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\nAdditionally, you can run tests for a specific environment:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$ kick test --production\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\nSee [Environments](doc:environments) for more information","excerpt":"","slug":"testing","type":"basic","title":"Testing"}
TDD is easy with angular-kick. Unit-tests are automatically generated with each controller, service, directive or filter generated. You can either run test suit once [block:callout] { "type": "info", "title": "Test Results", "body": "After each test run, an HTML file with test results will be generated.\n\nYou can find this file in `/test/resutls` directory" } [/block] [block:code] { "codes": [ { "code": "$ kick test", "language": "shell" } ] } [/block] or run continuous testing along with the browser-sync server: [block:code] { "codes": [ { "code": "$ kick server:tdd", "language": "shell" } ] } [/block] Additionally, you can run tests for a specific environment: [block:code] { "codes": [ { "code": "$ kick test --production", "language": "shell" } ] } [/block] See [Environments](doc:environments) for more information