KnowledgeBridge / tests /README.md
fazeel007's picture
initial commit
7c012de

Test Directory Structure

This directory contains all test files organized by type:

Directory Structure

  • unit/ - Unit tests for individual components

    • test_kb_browser.py - Unit tests for Knowledge Browser component
  • integration/ - Integration tests for system components

    • test-embeddings.js - Tests Nebius embedding models
    • test-enhanced-validation.js - Tests URL validation system
    • test-formatting.js - Tests document analysis formatting
    • test-nebius-direct.js - Direct Nebius client tests
    • test-nebius.js - Nebius integration tests
    • test-url-validation.js - URL validation system tests
    • quick_test.py - Quick integration test for KB Browser
  • e2e/ - End-to-end tests (placeholder for future tests)

Running Tests

Python Tests

# Run unit tests
python -m pytest tests/unit/

# Run integration tests
python tests/integration/quick_test.py

JavaScript Tests

# Run individual integration tests
node tests/integration/test-nebius.js
node tests/integration/test-embeddings.js
node tests/integration/test-url-validation.js

Test Categories

  • Unit Tests: Test individual functions and classes in isolation
  • Integration Tests: Test how different components work together
  • End-to-End Tests: Test complete user workflows (to be added)