Karma is started in the background with autoWatch set to true, so tests are run immediately when files change.
Once Karma has concluded a test run the results are shown in the Test Explorer in Visual Studio. There is no need to clickRun All in the Test Explorer.
Any output from a test (f.ex. using console.log) will be shown in the test result in the Test Explorer as a link:Output.
The port setting in the Karma configuration file (normally karma.conf.js) is ignored. A free port is chosen automatically.
Karma is only started if the configuration files (karma.conf.js and optionallyKarmaTestAdapter.json) are included in a Visual Studio project. Any other files, that Karma uses do not need to be included in a project.
The file and position of each test is registered, so that the Test Explorer in Visual Studio can link to the source code for the test.
The stack trace of a failed test is shown as a list of function names that link to the relevant line and file. As with the position of of tests, source maps are used to link to the original source.