Creating JavaScript Unit Tests
This feature is supported in the Professional edition only.
PyCharm integrates with most popular JavaScript unit testing frameworks and provides rich coding assistance for writing JavaScript unit tests. To get framework-aware coding assistance, download the desired framework, configure it as a PyCharm JavaScript library.
To create JavaScript unit tests
- Create a separate folder for tests ( ) next to the
src
folder. The name of this folder depends on the test framework you are using. - On the Directories page, mark the new folder as a test folder, see Configuring Folders within a Content Root.
- For each production file, create a separate test file by choosing ( on the context menu of the folder for tests. The format of the test file name depends on the test framework you are using.
Last modified: 26 October 2017