JavaScript Jasmine no specs found with more than 13 specs jasmine no specs found,jasmine no specs found typescript,jasmine

Jasmine is reporting a no specs found message after adding a 14th spec to it (doesn't matter if it is a copy of a working spec). If I use a self made reporter it shows that it went through all the specs no problem but that it reports a no specs found as end result.

added a console log to show what I mean

Started
[#quickSort]

Results               Top Level Tests
-------               ---------------
.Passed                should sort small array
.Passed                should hallo small array
.Passed                should sort array with identical values
.Passed                should do nothing with empty array
.Passed                shouldn't sort a string
.Passed                should do nothing with array with single field

Group "#quickSort" was finished


[#signature]

Results               Top Level Tests
-------               ---------------
[#signature Write signatureformat Remove]

Results               Top Level Tests
-------               ---------------
.Passed                Compact 1/2; Remove additional x/y members
.Passed                Compact 2/2; Also remove additional x/y members in sequential paths

Group "Write signatureformat Remove" was finished


[#signature Write signatureformat Reposition]

Results               Top Level Tests
-------               ---------------
.Passed                Reposition 1/2; Reposition top-left to 0,0 for more compact output
.Passed                Reposition 2/2; Reposition top-left to 0,0 for more compact output

Group "Write signatureformat Reposition" was finished


[#signature Write signatureformat Downscale]

Results               Top Level Tests
-------               ---------------
.Passed                Downscale 1/2; Downscale when needed with minimal resolution loss, so it will never get to large (-2000..2000)
.Passed                Downscale 2/2; Downscale when needed with minimal resolution loss, so it will never get to large (-2000..2000)

Group "Write signatureformat Downscale" was finished


.Passed                Write signatureformat - Complex export
.Passed                Write signatureformat - Rotate 180 degrees

Group "#signature" was finished


Started


No specs found
Finished in 0.002 seconds

Also here is the source of the spec_runner

//var exit = require('exit');
var Jasmine = require('jasmine'),
    reporters = require('jasmine-reporters');

var junitReporter = new reporters.NUnitXmlReporter({
  savePath: __dirname,
  consolidateAll: true
});

var myReporter = {

    jasmineStarted: function (suiteInfo) {
    },
    suiteStarted: function (result) {
        console.log('[' + result.fullName + ']');
        console.log('');
        console.log('Results               Top Level Tests');
        console.log('-------               ---------------');
    },
    specStarted: function (result) {
    },
    specDone: function (result) {
        var line = result.status.substr(0, 1).toUpperCase() + result.status.substr(1);
        if (line === "Failed") line = "+" + line;
        while (line.length < 22) line += " ";
        console.log(line + result.description);
    },
    suiteDone: function (result) {
        console.log('');
        console.log('Group "' + result.description + '" was ' + result.status);
        for (var i = 0; i < result.failedExpectations.length; i++) {
            console.log('AfterAll ' + result.failedExpectations[i].message);
            console.log(result.failedExpectations[i].stack);
        }
        console.log('');
        console.log('');

        // werkt gewoon niet???? [rv]
        //if (result.status !== "passed") exit(1)
    },
    jasmineDone: function () {
    }
};

var jasmine = new Jasmine();
jasmine.loadConfigFile("spec/support/jasmine.json");
jasmine.addReporter(myReporter);
jasmine.execute();
Answer:1

Fixed it. Problem was in package.json. I used "scripts":{"test": "jasmine spec/spec_runner.js"}

This caused jasmine to run 2 times. Fixed it by using

"scripts":{"test": "node spec/spec_runner.js"}

Answer:2

Make sure that your application compile successfully prior to try running tests. If you have errors pending Jasmine won't be able to find the specs files.

Answer:3

In many languages, to invoke some function directly on new instance I need to wrap it into braces: (new Date()).toString() In JS new Date().toString() and Date().toString() give the same results as ...

In many languages, to invoke some function directly on new instance I need to wrap it into braces: (new Date()).toString() In JS new Date().toString() and Date().toString() give the same results as ...

  1. call function directly
  2. call lambda function directly
  3. javascript call function directly
  4. call javascript function directly from html
  5. python call function directly from command line
  6. jquery call function directly
  7. python call function directly
  8. powershell call function directly
  9. python click call function directly
  10. django call view function directly
  11. c++ call virtual function directly

I am trying to change my iframe src and reload the iframe with the following code <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script> ...

I am trying to change my iframe src and reload the iframe with the following code <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script> ...

  1. change iframe with javascript
  2. change iframe with button
  3. change iframe with css
  4. iframe change with jquery
  5. change iframe to html
  6. change iframe to div
  7. change iframe on button click
  8. change iframe on click
  9. change iframe from parent
  10. change iframe in js
  11. change iframe in google
  12. changing iframe src with javascript
  13. changing iframe source with jquery
  14. change iframe src with jquery
  15. change iframe css with javascript
  16. change iframe content with javascript
  17. change iframe href with javascript
  18. change iframe url with javascript
  19. change iframe src with js
  20. change iframe content with jquery

I am trying to put a label on a polygon drawn via the google maps api. the result of my getPolygons.php ajax call looks like this: var triangleCoords = [ {lat:38.88154,lng: -77.02880}, {lat:...

I am trying to put a label on a polygon drawn via the google maps api. the result of my getPolygons.php ajax call looks like this: var triangleCoords = [ {lat:38.88154,lng: -77.02880}, {lat:...

  1. google maps polygon area
  2. google maps polygon tool
  3. google maps polygon label
  4. google maps polygon api
  5. google maps polygon edit event
  6. google maps polygon creator
  7. google maps polygon coordinates tool
  8. google maps polygon remove point
  9. google maps polygon z index
  10. google maps polygon fill pattern
  11. google maps polygon title
  12. google maps polygon click event
  13. google maps polygon center
  14. google maps polygon to geojson
  15. google maps polygon overlay
  16. google maps polygon infowindow
  17. google maps polygon drawing
  18. google maps polygon get coordinates
  19. google maps polygon get bounds
  20. google maps polygon with hole

I am calling some data from a JSON file in AngularJS but due to the asynchronous call the code is moving to other step before receiving the data so that is causing an error. I used $http.get $http....

I am calling some data from a JSON file in AngularJS but due to the asynchronous call the code is moving to other step before receiving the data so that is causing an error. I used $http.get $http....

  1. make synchronous call in javascript
  2. make synchronous call asynchronous c#
  3. make synchronous call in angular 5
  4. make synchronous call in nodejs
  5. make synchronous call in angular 7
  6. make synchronous call in angular
  7. make synchronous call in angular 4
  8. make synchronous call in angularjs
  9. make synchronous call asynchronous javascript
  10. make synchronous call in angular 2
  11. make synchronous call swift
  12. make synchronous call jquery
  13. make synchronous call node.js
  14. make synchronous call in react
  15. make synchronous call c#
  16. how to make synchronous call in angularjs
  17. make synchronous call asynchronous
  18. make call synchronous
  19. retrofit make synchronous call
  20. make synchronous ajax call javascript