From 5b82279ba67e89882e4135a72dfe73a42d643da3 Mon Sep 17 00:00:00 2001 From: Boris Sekachev Date: Thu, 30 Jan 2025 18:19:12 +0200 Subject: [PATCH] Removed minor outdated part of documentation --- .vscode/settings.json | 2 -- .../docs/contributing/development-environment.md | 2 -- site/content/en/docs/contributing/running-tests.md | 14 ++------------ 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index baf7dc5b3879..ea53e733b850 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -18,8 +18,6 @@ } ], "npm.exclude": "**/.env/**", - "licenser.license": "Custom", - "licenser.customHeader": "Copyright (C) @YEAR@ CVAT.ai Corporation\n\nSPDX-License-Identifier: MIT", "files.trimTrailingWhitespace": true, "sqltools.connections": [ { diff --git a/site/content/en/docs/contributing/development-environment.md b/site/content/en/docs/contributing/development-environment.md index 8b253da05725..3888550084a4 100644 --- a/site/content/en/docs/contributing/development-environment.md +++ b/site/content/en/docs/contributing/development-environment.md @@ -61,8 +61,6 @@ description: 'Installing a development environment for different operating syste - [Python](https://marketplace.visualstudio.com/items?itemName=ms-python.python) - [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) - [Stylelint](https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint) - - [Prettier Formatter for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) - - [licenser](https://marketplace.visualstudio.com/items?itemName=ymotongpoo.licenser) - [Trailing Spaces](https://marketplace.visualstudio.com/items?itemName=shardulm94.trailing-spaces) - [Code Spell Checker](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker) diff --git a/site/content/en/docs/contributing/running-tests.md b/site/content/en/docs/contributing/running-tests.md index b5faaca89f36..ee5d290707b4 100644 --- a/site/content/en/docs/contributing/running-tests.md +++ b/site/content/en/docs/contributing/running-tests.md @@ -132,17 +132,13 @@ Extra options: variables in the `docker-compose.dev.yml` -# Unit tests +# Server unit tests **Initial steps** 1. Install necessary Python dependencies: ``` pip install -r cvat/requirements/testing.txt ``` -1. Install npm dependencies: - ``` - yarn --frozen-lockfile - ``` 1. Build CVAT server image ``` docker compose -f docker-compose.yml -f docker-compose.dev.yml build cvat_server @@ -163,13 +159,7 @@ If you want to get a code coverage report, run the next command: coverage run manage.py test --settings cvat.settings.testing cvat/apps -v 2 ``` -1. JS tests - ``` - cd cvat-core - yarn run test - ``` - -**Debug python unit tests** +**Debugging** 1. Run `server: tests` debug task in VSCode 1. If you want to debug particular tests then change the configuration of the corresponding task in `./vscode/launch.json`, for example: