What to use in app testing, Unit test or End-To-End test?

Hi What is recommended in ionic app testing Unit test or End-To-End test? thanks.

2 Likes

Hi Annalyn0000003,
These should get you started:

e2e Tests


unit tests


1 Like

nice tutorials: I cannot immagine a “serious” (subjective) app being build without a single test.

These tutorials (very useful) are based on Angular2 build which means that you tests using Angular2 build and then build using Ionic2. The ideal would be to test what you have just built and deploy the same code.

I’m looking forward for the Ionic team to include tests in Ionic. :slight_smile:

Here is the official Ionic 2 unit testing example:

http://blog.ionic.io/basic-unit-testing-in-ionic/

Thank you @Happy_Thoughts :slight_smile:

My pleasure. Hope it all goes well.