๐Ÿ–ผ๏ธ
Annotate-Lab
  • ๐Ÿ‘‹Welcome to Annotate Lab
  • Overview
    • โœจKey Features
    • ๐Ÿ—ƒ๏ธProject Structure
    • โš™๏ธCustomization
  • Fundamentals
    • โฌ‡๏ธInstallation
    • ๐Ÿ› ๏ธSet up and Run
      • ๐Ÿ“Configuration
      • ๐Ÿ–ผ๏ธAnnotating Images
      • ๐Ÿ’พOutputs
      • ๐ŸงชRunning Tests
      • ๐Ÿ“”Code Formatting
  • Example
    • ๐ŸšฒAnnotating Bicycle
    • ๐Ÿ–ผ๏ธRipe and Unripe Tomatoes Dataset
    • ๐Ÿช„Auto Bounding Box Selection with Segment Anything Model (SAM)
  • โš ๏ธTroubleshooting
  • ๐ŸชชLicense
Powered by GitBook
On this page
  • Client Tests
  • Server Tests
  1. Fundamentals
  2. Set up and Run

Running Tests

PreviousOutputsNextCode Formatting

Last updated 10 months ago

Client Tests

The client tests are located in the client/src directory and utilize .test.js extensions. They are built using and .

Install Dependencies:

cd client
npm install

Run Tests:

npm test

This command launches the test runner in interactive watch mode. It runs all test files and provides feedback on test results.

Server Tests

The server tests are located in the server/tests directory and are implemented using .

Install Dependencies:

cd ../server
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
pip install -r requirements.txt

Run Tests:

python3 -m unittest discover -s tests -p 'test_*.py'

This command discovers and runs all test files (test_*.py) in the server/tests directory using unittest.

๐Ÿ› ๏ธ
๐Ÿงช
Jest
React Testing Library
unittest