GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Testing Testing
Brett Cannon edited this page
Note: Unit tests are those in files with extension
You can also run them from the command-line (after compiling): npm run test:unittests # runs all unit tests npm run test:unittests -- --grep='<NAME-OF-SUITE>' To run only a specific test suite for unit tests:
Alter the "args": [ "--timeout=60000", "--grep", "<suite name>" ], ...this will only run the suite with the tests you care about during a test run (be sure to set the debugger to run the Functional tests are those in files with extension You can run functional tests in a similar way to that for unit tests:
Note: System tests are those in files with extension
You can also run the tests from the command-line (after compiling): npm run testSingleWorkspace # will launch the VSC UI npm run testMultiWorkspace # will launch the VSC UI If you want to change which tests are run or which version of Python is used, you can do this by setting environment variables. The same variables work when running from the command line or launching from within VSCode, though the mechanism used to specify them changes a little.
In some tests a Python executable is actually run. The default executable is
By setting the This is also the mechanism for testing against other versions of Python.
This environment variable allows providing a regular expression which will be matched against suite and test "names" to be run. By default all tests are run. For example, to run only the tests in the Be sure to escape any grep-sensitive characters in your suite name. In some rare cases in the "system" tests the Launching from VS Code In order to set environment variables when launching the tests from VSCode you
should edit the "env": { "CI_PYTHON_PATH": "/absolute/path/to/interpreter/of/choice/python" } On the command line The mechanism to set environment variables on the command line will vary based on your system, however most systems support a syntax like the following for setting a single variable for a subprocess: VSC_PYTHON_CI_TEST_GREP=Sorting npm run testSingleWorkspace The extension has a number of scripts in ./pythonFiles. Tests for these scripts are found in ./pythonFiles/tests. To run those tests:
By default, functional tests are included. To exclude them:
To run only the functional tests:
Clone the repo into any directory, open that directory in V SCode, and use the The easiest way to debug the Python Debugger (in our opinion) is to clone this git repo directory into your extensions directory.
From there use the Once we code freeze for a release, we need to verify that everything is working appropriately. While automated tests are wonderful and help prevent regressions, physically verifying also helps in cases where a test might not be thorough enough or testing is simply too difficult to automate. We use VS Code's releasing testing procedure during their endgame. This entails:
What this means is all of the issues included in the milestone should have a Clone this wiki locally |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |