Skip to content
Magenaut

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

istanbul

Jest finds tests but doesn’t collect coverage

October 28, 2022 by Magenaut

I trying to collect test coverage for this project using

Categories Q&A, ReactJS Tags istanbul, jestjs, reactjs, typescript Leave a comment

How to cover React jsx files in Istanbul?

October 27, 2022 by Magenaut

I’m trying to integrate my existing test processes to now include React, but am struggling on the code coverage part. I’ve been able to get my unit tests working fine by following this project/tutorial – https://github.com/danvk/mocha-react – http://www.hammerlab.org/2015/02/14/testing-react-web-apps-with-mocha/

Categories Q&A, ReactJS Tags gulp, istanbul, javascript, mocha.js, reactjs Leave a comment

Running Mocha + Istanbul + Babel

October 6, 2022 by Magenaut

I’m having some issues while running Istanbul with Mocha and the Babel compiler.

Categories Node.js, Q&A Tags babeljs, istanbul, mocha.js, node.js Leave a comment

How to collect code coverage with Istanbul when executing HTTP endpoints via Postman or Karate

October 3, 2022 by Magenaut

I have a JS project that provides a set of endpoints leveraging Express with a typical express/router pattern.

Categories Node.js, Q&A Tags code-coverage, express, istanbul, karate, node.js Leave a comment

SonarQube Analysis not showing code coverage

September 29, 2022 by Magenaut

I have a Jenkins project to do SonarQube analysis of my NodeJS project. I added istanbul as a dependency to my project’s package.json. In the Jenkins build configuration, first I run a shell script:

Categories Node.js, Q&A Tags cobertura, istanbul, jenkins, node.js, sonarqube Leave a comment

How to make Istanbul generate coverage for all of my source code?

September 26, 2022 by Magenaut

Currently Istanbul is only generating coverage for files that are used in my tests, which is okay, but seems to defeat the purpose of having coverage somewhat.

Categories Node.js, Q&A Tags chai, istanbul, mocha.js, node.js, sinon Leave a comment

Recent Comments

  • silverplugins217 on How to add placeholder for contact form7 for dropdown?
  • Shreyas Ikhar on How to add a custom CSS class to core blocks in Gutenberg editor?
  • Magenaut on How to call function on timer ASP.NET MVC
  • Ebaad Uddin on How to call function on timer ASP.NET MVC
  • michealSmith07 on Is there a way to dynamically refresh the less command?

Tags

.net adobe-illustrator adobe-photoshop ajax arrays asp.net asp.net-core asp.net-mvc bash c# css database django eloquent express html java javascript jquery json laravel laravel-4 laravel-5 laravel-8 linux list mongodb mongoose mysql node.js npm pandas php python python-3.x react-hooks react-native react-router reactjs redux regex sql string typescript wordpress
© 2023 Magenaut • Built with GeneratePress