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

**URL:** <https://forum.ionicframework.com/t/what-to-use-in-app-testing-unit-test-or-end-to-end-test/81083>\
**Category:** ionic-v3\
**Created:** [February 26, 2017, 10:49pm UTC](https://forum.ionicframework.com/t/what-to-use-in-app-testing-unit-test-or-end-to-end-test/81083 "2017-02-26T22:49:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Annalyn0000003](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@Annalyn0000003](https://forum.ionicframework.com/u/Annalyn0000003)\
**Post date:** [February 26, 2017, 10:49pm UTC](https://forum.ionicframework.com/t/what-to-use-in-app-testing-unit-test-or-end-to-end-test/81083/1 "2017-02-26T22:49:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Happy\_Thoughts](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@Happy\_Thoughts](https://forum.ionicframework.com/u/Happy_Thoughts)\
**Post date:** [March 13, 2017, 1:29pm UTC](https://forum.ionicframework.com/t/what-to-use-in-app-testing-unit-test-or-end-to-end-test/81083/2 "2017-03-13T13:29:54Z")

</div>

Hi Annalyn0000003,  
These should get you started:

e2e Tests

> **[E2E (End-to-End) Testing in Ionic 2: An Introduction](https://www.joshmorony.com/e2e-end-to-end-testing-in-ionic-2-an-introduction/)**
>
> Over the past few weeks, I have been releasing a series of tutorials on creating automated tests for Ionic 2 applications. The tutorials so far have focused on how to apply the Test Driven Developm…

  

> **[E2E (End-to-End) Testing in Ionic 2: Structuring Tests with Page Objects](https://www.joshmorony.com/e2e-end-to-end-testing-in-ionic-2-structuring-tests-with-page-objects/)**
>
> In the first post in this series I wrote about how to create E2E (End-to-End) tests for Ionic 2 applications. This was a very basic introduction that focused on the general concept and getting a ba…

unit tests

> **[Introduction to Testing Ionic 2 Applications with TestBed](https://www.joshmorony.com/introduction-to-testing-ionic-2-applications-with-testbed/)**
>
> Creating automated tests for your application is a great way to improve the quality of your code, protect against code breaking regressions when implementing new features, and speed up testing and …

  

> **[Test Driven Development in Ionic 2: An Introduction to TDD](https://www.joshmorony.com/test-driven-development-in-ionic-2-an-introduction-to-tdd/)**
>
> The concept of creating automated tests for your application allows you to improve the quality of your code, protect against regressions when making updates, and speed up the testing and debugging …

---

<div class="post-metadata">

**Author:** ![sebastianovide](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sebastianovide/32/97090_2.png) [@sebastianovide](https://forum.ionicframework.com/u/sebastianovide)\
**Post date:** [March 30, 2017, 8:24am UTC](https://forum.ionicframework.com/t/what-to-use-in-app-testing-unit-test-or-end-to-end-test/81083/3 "2017-03-30T08:24:38Z")

</div>

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. 🙂

---

<div class="post-metadata">

**Author:** ![Happy\_Thoughts](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@Happy\_Thoughts](https://forum.ionicframework.com/u/Happy_Thoughts)\
**Post date:** [March 30, 2017, 9:58am UTC](https://forum.ionicframework.com/t/what-to-use-in-app-testing-unit-test-or-end-to-end-test/81083/4 "2017-03-30T09:58:37Z")

</div>

Here is the official Ionic 2 unit testing example:

[http://blog.ionic.io/basic-unit-testing-in-ionic/](http://blog.ionic.io/basic-unit-testing-in-ionic/)

---

<div class="post-metadata">

**Author:** ![Annalyn0000003](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@Annalyn0000003](https://forum.ionicframework.com/u/Annalyn0000003)\
**Post date:** [March 30, 2017, 10:39am UTC](https://forum.ionicframework.com/t/what-to-use-in-app-testing-unit-test-or-end-to-end-test/81083/5 "2017-03-30T10:39:05Z")

</div>

Thank you @Happy_Thoughts 🙂

---

<div class="post-metadata">

**Author:** ![Happy\_Thoughts](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@Happy\_Thoughts](https://forum.ionicframework.com/u/Happy_Thoughts)\
**Post date:** [March 30, 2017, 10:44am UTC](https://forum.ionicframework.com/t/what-to-use-in-app-testing-unit-test-or-end-to-end-test/81083/6 "2017-03-30T10:44:17Z")

</div>

My pleasure. Hope it all goes well.
