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
+6-11Lines changed: 6 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Ionic Unit Testing Example
2
2
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.
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.
4
4
5
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.
6
6
@@ -9,42 +9,37 @@ Special thanks to all of the contributors. With the exception of the Ionic team'
9
9
10
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`.
11
11
12
-
## **Also of note:**
12
+
###**Also of note:**
13
13
14
-
## **Added: Fix for assets not being found by Karma**
14
+
####**Added: Fix for assets not being found by Karma**
15
15
16
16
Thanks to [@datencia](https://github.com/datencia) for providing an update to our Karma configuration that properly sets the Karma base path so that image assets can be found during testing. This fix should also work any JSON data files you might want to use for testing. He also provided an image and updated our sample unit test spec file that tests that the image is found.
17
17
18
-
## **Added: Update code to match Ionic templates**
18
+
####**Added: Update code to match Ionic templates**
19
19
20
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.
21
21
22
22
## How to Configure Your Ionic Application for Testing
23
-
----------
24
23
25
24
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
25
27
26
## Looking for Version 2?
28
-
----------
29
27
30
28
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
29
32
30
33
31
## Credits
34
-
----------
35
32
36
33
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
34
38
35
## Past Changes
39
-
---------
40
-
41
-
### *2017-05-28: Update to Version 3.3.0*
36
+
#### *2017-05-28: Update to Version 3.3.0*
42
37
43
38
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.
44
39
45
40
Thanks to [@johnstonbl01](https://github.com/johnstonbl01/) for adding a couple of mocks that prevent us from seeing some unnecessary warning messages.
46
41
47
-
### *2017-05-12: Update to Version 3*
42
+
####*2017-05-12: Update to Version 3*
48
43
49
44
We've updated this repo to use Ionic v3.2.1 and Ionic CLI v3.0.0.
0 commit comments