-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error "TypeError: Cannot read property 'suite' of undefined" when using multiple frameworks #7
Comments
+1 @caffed, did you ever get this working with a single karma.conf.js? I'm also using jspm as a framework, for module loading, so this work around won't help me unfortunately :( |
Oops, that's our bad. Karma supports multiple frameworks but not multiple testing frameworks [1] :> Using jspm + benchmark in a separate config works just fine. I guess this can be closed, maybe a note in the README would be good (I'm sure @JamieMason mason would welcome a PR on that). [1] https://groups.google.com/forum/#!topic/karma-users/SRNwt6HwhBs |
same problem |
Thanks @mitermayer, @gadicc, @caffed. Sorry for such a delay in replying. It's been a long while since I've worked on karma-benchmark, but once I've finished what I'm doing on shrinkpack and ImageOptim-CLI I plan to pick this back up again in a couple of months. |
FYI 0.6.0 has been released. If I understand correctly, and also noticing @gadicc's #7 (comment) – I wouldn't mix performance benchmarks and unit tests in the same job as the latter would likely affect your benchmarks and possibly make them inaccurate. I will close based on this but please reopen if I've misunderstood. |
Hi there. Just want to first thank you for putting the time in to write this.
I am getting this error when I include
['jasmine', 'benchmark']
as frameworks for Karma:I logged the result being passed.
code karma-benchmark-reporter/index.js:33-36:
result:
It looks like
result.benchmark
does not exist.Is this expected behavior?
I have just created a separate karma.conf.js file for BenchmarkJS in leu of this error.
The text was updated successfully, but these errors were encountered: