BSS Tests¶
This folder contains executable test files for the Battery Swap Service (BSS) model.
Test Organization¶
Unit Tests¶
Unit test files are part of the codebase implementation and referenced in the technical specifications.
Test Specifications¶
Test specifications and integration test documentation are located in:
- ../design-intent/bss-scenario-tests.md - Business logic scenario tests
- ../design-intent/mqtt-odoo-integration-tests.md - MQTT Odoo integration test specifications
Running Tests¶
BSS Agent Tests¶
import { testBssAgent } from './bss-agent-test';
// Run BSS Agent demonstration
const result = await testBssAgent();
console.log('Agent test result:', result);
Test Framework Integration¶
Tests follow the user's preferred Validator Array Pattern for validation logic: - Clear, maintainable validation arrays - Simplified validator entries with only essential fields - Self-explanatory validation logic
Test Data Sources¶
Tests use schema-compliant data from:
- ../setup-data/README.md - Configuration files for test scenarios
Related Documentation¶
- BSS Model Status - Current implementation status
- BSS Technical Specifications - Technical requirements for testing
- Architecture Documentation - System architecture context