Skip to content
New issue

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

Underlining not working and values seem to not be updating #69

Open
timothyblue opened this issue Oct 10, 2021 · 0 comments
Open

Underlining not working and values seem to not be updating #69

timothyblue opened this issue Oct 10, 2021 · 0 comments

Comments

@timothyblue
Copy link

Using Angular 11 with the standard Karma tool that comes with the CLI.

I added the lcovonly reporter to the Karma config

coverageReporter: {
      dir: require('path').join(__dirname, './coverage'),
      subdir: '.',
      reporters: [{ type: 'html' }, { type: 'text-summary' }, { type: 'lcovonly' }]
    },

I have codeCoverage activated in my angular.js file

"test": {
          "builder": "@angular-devkit/build-angular:karma",
          "options": {
            "main": "src/test.ts",
            "polyfills": "src/polyfills.ts",
            "tsConfig": "tsconfig.spec.json",
            "karmaConfig": "karma.conf.js",
            "codeCoverage": true
          }
        }

I am running my tests using ng test

Also, the main file I am testing shows "Coverage: 32/37 lines". I added 4 basic public methods:

public testing(): void {
    console.log('here');
  }

Deleted my coverage folder and re-ran the tests and that number did not change. I even tried closing the file and re-opening it to no avail. I have discovered that if I close VS Code and re-open it, the values change to ""Coverage: 32/40 lines"

But I never see any underlining.

I even tried ng test --no-watch --code-coverage --source-map with no difference.

Any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant