Skip to content

nose Framework

Don Jayamanne edited this page Nov 9, 2016 · 2 revisions

This section outlines the details necessary to get you up and started with using the nose testing framework with Visual Studio Code.

Enable nose framework

Assign the value true against the setting python.unitTest.nosetestsEnabled as outlined here.
Ensure all other test frameworks have been disabled (i.e. have the value false).

Install nose

Ensure nose has been installed in the currently configured python environment.

Configuration Options

Command line options

Command line options for the nose can be passed by adding the necessary options into the following section in the user or workspace settings file settings.json:

  • Add the options as individual items as shown below:
    "python.unitTest.noseTestArgs": [
        "--stop",
        "--match=REGEX",
        "--where", 
        "tests/"
    ],

Note:

  • Details on command line options can be found here.

Configuration File

The use of a configuration file such as .noserc or nose.cfg are also supported. Details on the configuration files and options can be found here

Clone this wiki locally