- Update: Update to Ionic 3.6.0 and @angular/cli 1.3.2 (implying @angular 4.1.3) (bc89715)
- Update: Update to Ionic 3.4.2 and @angular/cli 1.1.2 (implying @angular 4.1.3) (9de0410)
- E2E: Add connect and serve-static dependencies for those just running E2E
- Update: Update to Ionic 3.3.0 and @angular/cli 1.0.6 (implying @angular 4.1.2) (f9928ab)
- Update: Update to Ionic 3.0.1 and @angular/cli 1.0.0 (implying @angular 4.0.0) (0ed7a16)
- Unit: Exclude mocks and config from coverage #221 (096e063)
The reverted code now lives on the ionic-unit-testing-example branch
- Update: REVERT: Look at deprecating this repo #239: (bf946c7..7dbd3b8)
(This version never really existed - I should have branced off but I didn't)
- Update: Look at deprecating this repo #239: (689c02f..d56c7d6)
- Update: Update to Ionic 2.1.0 and @angular/cli rc.0 (implying @angular 2.4.0) (13a6cd6)
- Update: Update to Ionic 2.0.0 FINAL (bac5ce3)
- Build: Remove #135, it's been obsolute since ionic went back to webpack (and we moved to ng-cli) will be implemented by Ionic in ionic-team/ionic-cli#1205 #217 (5a3e177)
- Update: Update to Ionic RC5 (7328aad)
The above update includes creating a mock for Ionic's platform class and using it as a provider in test.ts. I have not attempted to mock out the whole class, what is there is sufficient for clicker. If anything is missing for your app, you can add easily by referencing the signature in node_modules/ionic-angular/platform/platform.d.ts.
- Unit: Fixing codecov integration #200 (ecf5d87)
- Unit: Reverting to typescript 2.0.10 to fix Jasmie typings misisng when ionic:build'ing #159 (973292a)
- Update: Update to Ionic RC4 (b27aade)
The above update includes a change to angular-cli which means you need to add the current working directory to template urls:
For example:
templateUrl: 'hello-ionic.html',
becomes
templateUrl: './hello-ionic.html',
Also Ionic's DomController needs adding into test.ts as a provider
- Unit: Add example of TestBed component compiling manually in the component (Page2) as opposed to calling TestUtils closes #179 (51b5e23)
- Unit/E2E: Reverting to using jasmine types in main tsconfig.json as excluding spec means editors don't resolve modules, closes #174 (0ae024b)
- Update: Update to Ionic RC2 (694be18)
- E2E: Re-implement e2e post rc1 (a5ea70c)
- Update: Update deps (b0a95a6)
- Unit: Rationalise beforeEach boilerplate into TestUtils.beforeEachCompiler (a5fef51)
- Build: Using workaround for missing SDK license (b6751ac)
- Unit: Barrels aren't working with modules since latest upgrade: (0c0993b)
- Unit: Add compileComponents to beforeEach, use ng-cli's tsconfig.json for testing for #155 (d59d968)
Re-write project for to Ionic 2.0.0.rc0:
- restructure app for new directory structure: (3e92e3c) (bcb1c80) (a992f38)
- merge config (055bf22)
- build errors (58d4732)
- remove ngrx (07d5e6c)
- POC for ng-cli setup (7b1a80c)
- centralise boilerplate (c7e9b57)
- update *.spec (819caf5)
- all unit tests working (02b0901)
- tidy up and update to rc1 (f66d45a)
- Update: Update deps PR #143
- Update: Update to Ionic 2.0.0.beta.11 (01530a7)
- Unit Test: Make (source) source maps available to debug mode by remove the coverage transform which seems to be mangling them #119 (74ec6fa)
- E2E: Problems introduced with 1.7.0, missing menu, incorrect title, and transition timing on Page2 (c0562f0)
- Unit Test: Implement Barrels and move mocks to individual files PR #109 (0734e45)
- Update: Update to Ionic 2.0.0.beta.10 (1b1b2e3)
- Update: Update to Ionic 2.0.0.beta.9 (a61432c)
- Update: Update to Ionic 2.0.0.beta.7 and Angular 2.0.0.rc.1 PR #93 big update due to Angular RC1 (bc392c3)
- Unit Test: Use browserify within Karma (see below) (5f096f7)
- Unit Test: Remove glob, gulp-load-plugins and gulp-util dependencies, refactor gulpfile to remove most typing dependencies (c67beae)
- actually enables sourcemaps in Karma
- quicker builds
- remove the requirement for remapping coverage as it happens with browserify
- remove
test/config.ts
as it was only being used in gulpfile.ts, and as we're making everything lighter it seems unlikely to be extended - remove
test/app.stub.js
Now using a workaround in Karma instead. See (#79)
- Unit Test: Merge PR #87 which sorts out Karma's random "Formatting Errors" (f3b6641)
- E2E: Remove absolute path for protractor (#83) (5894a5a)
- Unit Test: Increase browser timeout (#82) (ff59b33)
- Update: Update to Ionic 2.0.0.beta.6 (a571e7c)
- Unit Test: Lightweightify (440ac08)
Lightweightify is a major refactor to the framework. See the issue for further info.
The main changes are listed below
- unit tests are now bundled into
test.bundle.js
- sourcemaps are now produced @
test.bundle.js.map
- coverage is remapped onto source Typescript meaning that transpiled javascript is no longer pushed to
./coverage/source
- gulpfile.ts has had a large refactor away from the ng2-seed style and back toward what everyone else seems to be doing
app.stub.ts
has been renamed and largely re-written inapp.stub.js
, as was required by a change in the process
The following files have been removed as they are no longer required
- .travis/push_built_tests.sh
- coverage/source/**.js
- test/ionic-angular.js
- test/test-main.js
Migration
I strongly suggest adopting the new framework as it brings with it many benefits. I will update this if firsthand information is forthcoming
- nuke the
./test
and replace it with the new version. Note that any proxies for external modules inkarma.conig.js
are no longer required, thus there should be no project specifics in that folder - remove the
export function main()
wrapper from your*.spec
: example - merge
package.json
(just for dependencies), some have been removed, some added. Note dependencies are now documented in README.md
Hopefully that should be it.
- Deps: Merge PR #71 correcting
ionic-gulp-webpack
dependency (efc9cdf) - Update: Upgrade deps (angular2, etc) to latest Ionic 2.0.0.beta.4 (5649061)
- Docs: Add "two shell windows" to README.md after someone misread it (69b5ccb)
- Travis: Adding install for Phantom manually to get around this 403 in Travis (aa6173a)
- E2E: Use sendKeys workaround to send delayed keystrokes for randomly failing e2e (642973d)
- Build: Merge PR #56 remove
;
(9ecdbf4)
- Travis: Testing e2e in Travis (4a6f5eb)
- Unit Test: DOM test skeleton for @Page Clicker List (65bf5d5)
- Build: Hook into Ionic's gulpfile directly and remove ionic-app-lib (6a4b17c)
- Update: Fixing CSS references broken in upgrade (again) (40d682c)
- Update: Upgrade deps (angular2, etc) to latest Ionic 2.0.0.beta.2 (1e9cc11)
- E2E: Starting groundwork for e2e testing based on ng2 seed (36572b6)
- Build: Count source and target files in buildlocker rather than relying on existance of a specific file in the target (6137fd8)
- Travis: Ionic Framework .beta.18 was broken on Travis (#24), upgrade to .19 (6003691)
- Update: Upgrade angular2 to beta.9 which supports typescript 1.8.* (#9 ([d46f017])
- Build: Using Ionic's build tools in
ionic-app-lib
(9005006) - Unit Test: Enable form tests again after our PR is merged into Ionic (#12) (aa726486)
- Build: Improve workaround for
ionic-angular/index
by creating own references inionic-angular.js
(#27) (21ba465)
- Build: Move conifg to
./test
(#27) (f78363d) - Update: Update to Ionic 2.0.0.beta.1 (#25) (67bad59)
- Build: Use Cordova Hooks to prevent test files from ending up inside the apk (82be26a)
- Deps: Use explicit versioning in npm ([#17]](lathonez#17)) (90f677d)
- Deps: Dependency Badge (#13) (b30e24d)
- Deps: Migrate from tsd to typings (#10) (120c02e)
- Build: Move spec to source directory (#11) (3d3650f4)
- Unit Test: Previously using a bunch of hacks accessing private control variables (cc5c0a5)
- App: Need to use one or the other when typing (cc2d919)
- App: Update tslint to enforce strict typing and change typescript to be strictly typed (cc2d919)
- Unit Test: Misconfiguration in Karma (5af7958)
- Unit Test: Previously using toBeDefined, but they will always be defined! (d8e1cf5)
- Unit Test: Using Angular2's DI to test component's in the DOM (07f60bf)
- App: Utility function should be placed in
.catch
in any promise to debug errors (0621169)
- Update: CSS was broken in Ionic upgrade (98c13c4)
- Update: Icons were broken in Ionic upgrade (c954c15)