Questions tagged [karma-qunit]

QUnit adapter for the Karma test runner.

QUnit adapter for the Karma test runner.

10 questions
5
votes
0 answers

Error in using Karma with SystemJS, gulp, and TypeScript

I am new to node.js stack like npm, gulp etc. I had wrote some JavaScript unit test cases earlier, and now want to use Karma as test runner. However, after a few attempts I am completely lost now. To start, I have following project…
Sayan Pal
  • 4,768
  • 5
  • 43
  • 82
3
votes
0 answers

Ember: how to get coverage on the actual code, not the transpiled code

I'm trying to set up CI on existing projects, some use CoffeeScript, some use ES6 syntax. But I can't find a way to get a proper code coverage on the actual code. All I have is the coverage on the transpiled code and it seems I can't even post that…
1
vote
0 answers

Set static path for karma runner

I was able prepare my OpenUI5 app for testing. I am having issue with the working directory for tests, because for my test I need to use a pre-populated sqlite3 database. For testing I use chrome with parameters --user-data-dir="C:\tmp"…
Coudy
  • 127
  • 2
  • 13
1
vote
1 answer

Karma/QUnit Unit Test External Site

I have a Portal application running on one port--http://localhost:10039. I am trying to unit test individual Ember.js applications, which are loaded into the Portal app via portlets. What I'd like to be able to do is have those QUnit tests run…
1
vote
1 answer

Testing Emberjs app using QUnit and Karma fails due to `ReferenceError: Faye is not defined`

I Was testing EmberJs application with Qunit and karma runner and it was working all good. Then I had to integrate faye into the application which went well but then on running my test suite, it shows following error and crashes: ReferenceError:…
chetang
  • 198
  • 3
  • 19
0
votes
0 answers

Karma config proxy configuration gives 'failed to proxy' error

I have my project folder like so: -src -resources resource1.txt resource2.txt // and more -unittests assets assetList1.txt assetList2.txt // and more karma.conf.js And I have my karma.conf.js setup like…
Chubsdad
  • 24,777
  • 4
  • 73
  • 129
0
votes
1 answer

karma config fails to add external project or file in the current project

I have added unit tests in some frontend projects using karma. I have multiple projects in my Git folder. If I run them individually, they work fine. However if there is a dependency of one project in another project it fails to include it. (failed…
0
votes
0 answers

How to check code coverage in Qunit test framework

We have tried to implement Istanbul and Karma both in separate workspaces. Istanbul:- We have installed nyc packages to run test cases. After that when we run nyc qunit, we are getting below error in config.js file. not ok 1 test\config.js > Failed…
0
votes
2 answers

Unit Testing JavaScript in ASP.NET MVC with Jasmine and Karma

I am writing a sample ASP .NET MVC application, which has karma and requirejs to test the scripts. I see below error Uncaught (in promise) Error: No tests were run. I see below error in command prompt Chrome 77.0.3865 (Windows 10.0.0): Executed 0 of…
Rajalbar
  • 59
  • 9
0
votes
2 answers

How to install qunitjs with git on Karma's?

I'm trying to work around this error in karma. QUnit has comitted a fix for the error since v1.14.0, so I want to install qunit from git to work with karma-qunit. npm rm qunitjs npm i jquery/qunit Then I run karma and I get an error, even though…
nnyby
  • 4,748
  • 10
  • 49
  • 105