3

I have started using Jasmine (not Karma yet) with Visual Studio Code. Works nicely with the following config:

{
"version": "0.2.0",
"configurations": [
    {
        "name": "jasmine",
        "type": "node",
        "request": "launch",
        "program": "${workspaceRoot}/node_modules/jasmine/bin/jasmine.js",
        "stopOnEntry": false,
        "args": [],
        "cwd": "${workspaceRoot}",
        "runtimeArgs": [
            "--nolazy"
        ],
        "env": {
            "NODE_ENV": "development"
        }
    }
  ]
}

Now my tests are building up I wanted to know if there was a way to just run a specific test or a tests within a specific file? At the moment all my tests are running which take a while.

JD.
  • 14,235
  • 21
  • 75
  • 149

1 Answers1

3

The same way as from the cli would be the simplest option (since Jasmine 2.1: fit, fdescribe)

See How do I focus on one spec in jasmine.js?

Community
  • 1
  • 1
Shmee007
  • 66
  • 5