lathonez / clicker

Ionic 2 + @angular/cli Seed Project : Angular2 + Typescript + Karma + Protractor + Travis
http://lathonez.com/2018/ionic-2-unit-testing/
MIT License
430 stars 137 forks source link

Can we do unit testing of Forms, Navigations using official Ionic-unit-testing example? #258

Closed jainAdijain closed 7 years ago

jainAdijain commented 7 years ago

Hi Lathonez, I have read your blog which was very explanatory and useful. I know this platform is not good for these types of questions but I am not able to add more questions to stackoverflow. I am very new to Karma/jasmine and using my hand for Unit Testing of Ionic Application. I have some questions which I felt that you can only give me a correct answer and guide me to solve those. 1.) As I want to test unit testing of forms on ionic, so the official unit-testing-example of ionic will be okay or shall I use clicker because I have to decide if unit-testing is possible then only I can include in production.

2.) In Unit-testing for ionic applications there are only limited use cases? Like for example I want to unit test a form so there limited no of use cases or we can test any use case that we are willing to?And If there are limited then is there any list for those?

3.)Is ionic have there own utils methods as that of angular's utility methods?If yes then where do we find the lists?

Thank you, Hope you will reply.

lathonez commented 7 years ago

Hi,

1 - I would not use unit-testing-example for production code

2 - You can test anything you want

3 - Not that I am aware of

Thanks

jainAdijain commented 7 years ago

okay, Thank you for the response.