Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Testing Guide

This folder contains functional tests for the code-tokenizer package.

Quick Start

Run all tests

uv run pytest

Run specific test file

uv run pytest tests/functional/test_file_analyzer.py
uv run pytest tests/functional/test_code_collector.py
uv run pytest tests/functional/test_code_analyzer.py

Run with verbose output

uv run pytest -v

Check test coverage

uv run pytest --cov=src/code_tokenizer --cov-report=term-missing

Test Structure

  • tests/functional/ - Contains all functional tests
    • test_file_analyzer.py - FileAnalyzer core functionality tests
    • test_code_collector.py - CodeCollector functionality tests
    • test_code_analyzer.py - CodeAnalyzer integration tests

Notes

  • Uses uv for dependency management
  • Requires pytest and pytest-cov for coverage reporting