I currently use Chutzpah to run and debug Jasmine Unit tests that include AMD/require.js modules. I would like switch to the test runner of Resharper 2017. However, Resharper does not seem to fully support Jasmine Unit Tests?
A. Example jasmine test:
/// <reference path="../../bower_components/requirejs/require.js" />
/// <reference path="../../bower_components/jasmine-core/lib/jasmine-core/jasmine.js" />
describe('dummy example test', function() {
it("should return bar", function () {
expect(true).toEqual(true);
});
});
The Test can be run with Resharper but the Debugging option is disabled:
B. Example test with module definition:
/// <reference path="../../bower_components/requirejs/require.js" />
/// <reference path="../../bower_components/jasmine-core/lib/jasmine-core/jasmine.js" />
define(['Squire'], function(squire) {
describe('dummy example test', function() {
it("should return bar", function() {
expect(true).toEqual(true);
alert('has been executed');
});
});
});
If I start that with Resharper the test never ends and the it method is not called.
Is it true that Resharper 2016 does not yet support the Debugging of Jasmine unit tests and neither the usage of AMD modules with unit tests? Or do I need to somehow adapt my Resharper settings to get Debugging and AMD/requirejs modules to work?
(Since both Chutzpah and Resharper 10 use outdated versions of Jasmine I am also open for further suggestions that integrate well with VisualStudio.)
Edit: Resharper 2016 seems to support Jasmine Versions > 2.0.
Related (not up to date?) articles:
Edit
The questions have been originally posted for Resharper 10. They are still valid for Resharper 2016.
As of ReSharper 2016.1:
A. Debugging JavaScript tests is not supported. Here is the feature request.
B. AMD is not supported. Here is the related ticket.