Comments (8)
Here is a debug log: https://gist.github.com/mcanfield/39ef9a0dec1fe6fca2e6a948789455a7
from clicker.
Hey,
Unfortunately it's a very generic error. Most probably you've named karma.conf.js incorrectly or the contents of that file are incorrect.
Suggest the general debug advice:
- Clone this repo
- npm install
- npm test
- Now you know everything in this framework is OK on your system
- Diff the root folder of this repo to your own using a visual diff tool (I use meld)
Let me know how you go.
Thanks
from clicker.
Hi @lathonez thanks for the reply. Unfortunately I did go through the general debug advice before posting the issue. I copy/pasted all the config files verbatim (only removing references to clicker
). The above gist has 2 log outputs, the first is from my setup the second is from lathonez/clicker
. Yours works, mine doesn't.
My general project structure is the same. All my template url's contain ./<template>.html
. To reduce complexity I've removed all specs from the suite except one. The only project config differences are in package.json
, but those are product dependencies so the differences are as to be expected. I do have a custom ionic webpack.config.js
, that shouldn't matter but I removed it temporarily anyway.
The Chrome instance that is launched contains my project file and specs under the webpack:// source. So karma is working up to that point. The only difference between mine and clicker
is that clicker
has its files successfully being served under the source ng://.
Google also came back with the lamenting reply that this is a generic error. From looking through the karma
source code it's clear that the jasmine framework isn't overriding the default __karma__.start
global reference, causes the default function to spit out You need to include some adapter that implements __karma__.start method!
.
Since nothing jumps out at you I'll rinse and repeat a couple times and explore the track of why jasmine's karma.start function isn't overriding the default karma.start. Worse case, I'll start porting my app piece by piece into a working unit test setup.
Thanks again!
from clicker.
@mcanfield - can I pull clone the project and have a look or is it closed source?
from clicker.
@lathonez it is private source currently, but will one day be open source. If you have a gitlab account I can give you access, or email you a tarball. Sorry, been super busy last couple days. Thanks for offering.
from clicker.
Sorry I didn't get back to you. My (free) time only contributes to FOSS.
Happy to discuss contracting.
from clicker.
If you ended up solving this somehow, please share the solution!
from clicker.
Heya @lathonez no worries. It's only private right now due to how the agency develops software, it will by necessity be FOSS. If you knew who, you'd understand better. In any case, I did not find a resolution and have put the project on the back burner. Maybe things will magically start working once I fire it back up, or Ionic will finally treat testing as a first class citizen... now that's a thought 😃 ! In any case, thank you so much for the triage and follow up!
from clicker.
Related Issues (20)
- Tests not running fully under PhantomJS HOT 2
- Protractor and lazy load tab pages HOT 1
- Add support for multiple languages HOT 4
- Ionic deeplinks HOT 3
- Feature modules HOT 6
- Different tsconfig.json for ionic? HOT 4
- Update to latest HOT 1
- Update GIF HOT 1
- Deploy live version HOT 8
- Getting a '404' for -> http://lathonez.com/2017/ionic-2-unit-testing/ HOT 1
- Undesirable Warning: Critical dependency: the request of a dependency is an expression HOT 1
- Questions about E2E test cases for Ion-menu component HOT 1
- Error: Uncaught (in promise): invalid link: rootPage in case of lazy loading unit test cases HOT 1
- Usage of Greenkeeper HOT 1
- Help needed to manually trigger Swipe gesture on DIV in E2E tests HOT 3
- Question: Translation R to L Support HOT 1
- Setup insufficient to test apps dependent on external APIs
- when i compiling the ng serve it was display warning and uncompiling files
- Burh test
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clicker.