You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-21Lines changed: 25 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,10 @@
1
-
Ionic Unit Testing Example
2
-
=====================
1
+
# Ionic Unit Testing Example
3
2
4
3
This repository is an example project that gives guidance on setting up your Ionic application for unit testing and end-to-end (E2E) testing. We have been told the folks at Ionic will be adding testing features to new projects in the future. But until then, feel free to borrow from this project as needed.
5
4
6
5
Special thanks to all of the contributors. With the exception of the Ionic team's updates to the framework, this project is stable. If you have a suggestion, feel free to update code and make a pull request. Find a problem or bug, feel free to file a detailed issue.
7
6
8
-
UPDATES:
9
-
--------
7
+
## UPDATES:
10
8
### **2017-08-26: Update to `ionic-angular` version 3.6.0**
11
9
12
10
We updated the project to `ionic-angular` version `3.6.0`. Developers wishing to use this should also update Ionic CLI for a better experience. With today's update, this project is now at version `0.0.5`.
@@ -21,6 +19,25 @@ Thanks to [@datencia](https://github.com/datencia) for providing an update to ou
21
19
22
20
Thanks (again) to [@danielsogl](https://github.com/danielsogl/) for providing a code update to the project so that our code matches code created by using the `ionic start` command. Having this code properly match is important as it provides the best practice guidance for handling application start up.
23
21
22
+
## How to Configure Your Ionic Application for Testing
23
+
----------
24
+
25
+
Read [this tutorial](https://leifwells.github.io/2017/08/27/testing-in-ionic-configure-existing-projects-for-testing/) for instructions on how to apply the testing configuration in this project to your own project.
26
+
27
+
## Looking for Version 2?
28
+
----------
29
+
30
+
If you are using Ionic v2, please see our [ionic-v2-branch](https://github.com/ionic-team/ionic-unit-testing-example/tree/ionic-v2-branch).
31
+
32
+
33
+
## Credits
34
+
----------
35
+
36
+
This repository is based on the awesome [unit testing example](https://github.com/roblouie/unit-testing-demo) from [@roblouie](https://github.com/roblouie/):thumbsup:
37
+
38
+
## Past Changes
39
+
---------
40
+
24
41
### *2017-05-28: Update to Version 3.3.0*
25
42
26
43
Thanks to [@danielsogl](https://github.com/danielsogl/) for getting us up-to-date with Ionic 3.3.0, Angular 4.1.2 and Ionic Native 3.10.2.
@@ -40,31 +57,18 @@ npm install -g ionic
40
57
```
41
58
If you run `ionic -v` it should return `3.0.0` (or better, depending on what has been released.
42
59
43
-
Looking for Version 2?
44
-
----------------------
45
-
46
-
If you are using Ionic v2, please see our [ionic-v2-branch](https://github.com/ionic-team/ionic-unit-testing-example/tree/ionic-v2-branch).
47
-
48
-
49
-
Credits
50
-
=====================
51
-
52
-
This repository is based on the awesome [unit testing example](https://github.com/roblouie/unit-testing-demo) from [@roblouie](https://github.com/roblouie/):thumbsup:
53
-
54
-
Getting Started
55
-
===============
60
+
## Getting Started
61
+
-----------
56
62
57
63
To get started, clone this repo, and run `npm install` in the root directory.
58
64
59
-
Unit Tests
60
-
----------
65
+
### Unit Tests
61
66
62
67
To run the tests, run `npm test`.
63
68
64
69
See the example test in `src/app/app.component.spec.ts` for an example of a component test.
0 commit comments