@@ -126,13 +126,24 @@ generateBatch(count, timestampOffset = 0) {
126126
127127## Testing
128128
129- Currently, we have example scripts rather than formal tests . When adding functionality :
129+ We have comprehensive unit tests for core functionality . When adding or modifying features :
130130
131- 1 . Create an example in ` examples/ ` directory
132- 2 . Document how to run it
133- 3 . Verify it works on clean install
131+ 1 . Run the test suite: ` npm test `
132+ 2 . Add tests for new functionality in ` test/ ` directory
133+ 3 . Ensure all tests pass before submitting PR
134+ 4 . Test coverage includes:
135+ - BigQuery client with retry logic
136+ - Config loader for single and multi-table formats
137+ - Sync engine with phase calculation
138+ - Maritime data generators
139+ - Multi-table orchestrator
134140
135- ** Future** : We'll add proper unit and integration tests.
141+ ** Example test run:**
142+
143+ ``` bash
144+ npm test
145+ # All tests should pass (91 tests currently)
146+ ```
136147
137148## Documentation
138149
@@ -147,19 +158,19 @@ If your change affects user-facing features:
147158
148159### High Priority
149160
150- 1 . ** Testing Infrastructure **
151- - Unit tests for generator
152- - Integration tests
153- - CI/CD pipeline
161+ 1 . ** Production Operations **
162+ - Deployment documentation for Fabric and self-hosted
163+ - Monitoring dashboard templates (Grafana, CloudWatch)
164+ - Operational runbooks for common scenarios
154165
155- 2 . ** Error Handling **
156- - Better error messages
157- - Recovery strategies
158- - Validation improvements
166+ 2 . ** Testing Expansion **
167+ - Integration tests for end-to-end sync validation
168+ - Performance benchmarks
169+ - Multi-node cluster testing
159170
1601713 . ** Documentation**
161- - More examples
162- - Video tutorials
172+ - Video tutorials (setup, configuration, troubleshooting)
173+ - More real-world configuration examples
163174 - Architecture diagrams
164175
165176### Medium Priority
@@ -194,9 +205,14 @@ The BigQuery plugin integrates with HarperDB. When modifying plugin code:
194205
195206** Key Files** :
196207
197- - ` src/sync-engine.js ` - Main sync engine logic
198- - ` src/validation.js ` - Data validation
208+ - ` src/index.js ` - Plugin entry point and Harper integration
209+ - ` src/sync-engine.js ` - Core sync engine with adaptive batch sizing
210+ - ` src/bigquery-client.js ` - BigQuery API client with retry logic
211+ - ` src/validation.js ` - Data validation and auditing
212+ - ` src/query-builder.js ` - SQL query construction
213+ - ` src/config-loader.js ` - Configuration parsing (single/multi-table)
199214- ` schema/harper-bigquery-sync.graphql ` - GraphQL schema
215+ - ` test/ ` - Unit tests for all core functionality
200216
201217## Synthesizer Development
202218
0 commit comments