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

Failed tests not displaying as problems #1

Open
DesHorsley opened this issue Feb 27, 2019 · 1 comment
Open

Failed tests not displaying as problems #1

DesHorsley opened this issue Feb 27, 2019 · 1 comment

Comments

@DesHorsley
Copy link

I've installed the plugin, created the following task:

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Start Live Unit Tests",
            "type": "npm",
            "script": "test",
            "group": "test",
            "isBackground": true,
            "problemMatcher": "$karma-jasmine3"
        }
    ]
}

My angular 7 app is using:
"jasmine-core": "~3.3.0"
"karma-jasmine": "~2.0.1"

I've tried both $karma-jasmine3 and $karma-jasmine2 and neither seem to display the failing tests in the problem window, any suggestions I should try?

@MaulingMonkey
Copy link

"problemMatcher": ["$karma-jasmine2"] would be the "correct" based on your "karma-jasmine": "~2.0.1" AFAIK. Chances are the regular expressions are simply failing to parse something about your build output. I just created #2 to fix some issues with ["$karma-jasmine3"] , but that won't fix 2.

If you can share a sample of your Terminal output, it'll hopefully be straightforward to add new test cases and fix the problem. 2 probably has many of the same problems 3 had, but I'd rather not try and blind-fix problems without a real test case.

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

2 participants