jasmine-node icon indicating copy to clipboard operation
jasmine-node copied to clipboard

Progress of test on console

Open marcelijanowski opened this issue 11 years ago • 6 comments

If there is configuration switch to see progress of tests on console so I can see which tests is running now and scroll up to see which tests already passed?

marcelijanowski avatar Mar 15 '14 11:03 marcelijanowski

Can you be more specific? Currently in non-verbose mode you get something like:

.....F....F....F....

and in verbose mode you get tons of extra data. (use command line flag --verbose).

tebriel avatar Mar 15 '14 21:03 tebriel

This is my configuration:

var config,
    onPrepare,
    specs;

onPrepare = function () {
  var dir,
      wrench;

  require('jasmine-reporters');

  dir = 'test/report/protractor/';
  wrench = require('wrench');
  global.select = global.by;

  wrench.mkdirSyncRecursive(dir);
  jasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter(dir, true, true));
};

config = {
  framework: 'jasmine',
  onPrepare: onPrepare,
  specs: ['*/*.step.js'],
  allScriptsTimeout: 20000,
  jasmineNodeOpts: {
    defaultTimeoutInterval: 300000,
    isVerbose: true,
    showColors: true,
  },
  capabilities: {
    browserName: 'chrome'
  },
  baseUrl: 'http://localhost:8000'
};

exports.config = config;

I'm now running 26 tests and I don't see any progress until it succeed or fail

marcelijanowski avatar Mar 17 '14 10:03 marcelijanowski

I don't know, I've never used it in this way. Is this using some other library to run jasmine-node? That's not a config that's ever used for jasmine-node.

tebriel avatar Mar 29 '14 14:03 tebriel

I'm currently experiencing this. We added the flag isVerbose set to true in our code and it's not showing any output as the test is run. Here's how we kick it off:

jasmine.executeSpecsInFolder({
    specFolders: ['./spec/javascripts/'],
    isVerbose: true,
    showColors: true,
    onComplete: _onComplete
});

Everything runs fine, mind you. Just that it doesn't output anything while running. To be sure I added a log statement before line 129 in index.js to see if this code is run:

jasmineEnv.addReporter(new jasmine.TerminalVerboseReporter({ print: print,
                                                         color:       showColors,
                                                         onComplete:  done,
                                                         stackFilter: removeJasmineFrames}));

and indeed it does. Any ideas?

mattpardee avatar Apr 05 '14 00:04 mattpardee

Same problem here I think. I am running jasmine-node from the CLI. Without --verbose, the dots are displayed while the tests are running. With --verbose, nothing is displaying while the tests are running : I need to wait until the end to get all the results. Which is a problem when a test is blocking, I can't get any results.

r3mi avatar May 01 '14 13:05 r3mi

In the current (non Jasmine2.0) jasmine no progress is shown, only a summary once the tests are complete. This is how the feature was original developed. The Jasmine2.0 branch shows them as the tests are running.

tebriel avatar May 01 '14 13:05 tebriel