We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Note: this was reported in karma as karma-runner/karma#3131
Using client.captureConsole = true, I expect all console.* calls to output to the terminal.
client.captureConsole = true
console.*
d:\karma_captureConsole_bug> karma start Chrome 68.0.3440 (Windows 10 0.0.0) INFO: 'I am outside of test!' LOG: 'I am inside of test!' Chrome 68.0.3440 (Windows 10 0.0.0): Executed 1 of 1 SUCCESS (0.007 secs / 0.001 secs) TOTAL: 1 SUCCESS
Only console.* calls occurring while running a test are output to the terminal
d:\karma_captureConsole_bug> karma start LOG: 'I am inside of test!' Chrome 68.0.3440 (Windows 10 0.0.0): Executed 1 of 1 SUCCESS (0.007 secs / 0.001 secs) TOTAL: 1 SUCCESS
karma --version
3.0.0
C:\Users\\AppData\Roaming\npm `-- [email protected]
karma.conf.js
module.exports = (config) => { config.set({ client: {captureConsole: true}, frameworks: ['jasmine'], files: ['script.js'], browsers: ['Chrome'], singleRun: false, }) };
script.js
console.info('I am outside of test!'); it('test1', function(){ console.log('I am inside of test!'); });
karma start
singleRun
true
The text was updated successfully, but these errors were encountered:
Sorry, now I believe this is a karma-runner issue.
Sorry, something went wrong.
No branches or pull requests
Note: this was reported in karma as karma-runner/karma#3131
Expected behaviour
Using
client.captureConsole = true
, I expect allconsole.*
calls to output to the terminal.Actual behaviour
Only
console.*
calls occurring while running a test are output to the terminalEnvironment Details
karma --version
):3.0.0
karma.conf.js
:script.js
:Steps to reproduce the behaviour
karma.conf.js
,script.js
in a directorykarma start
to see actual behaviorkarma.conf.js
so thatsingleRun
istrue
to observe expected behaviorThe text was updated successfully, but these errors were encountered: