Skip to content

test: add integration tests for CREATE TABLE / INSERT / SELECT#16

Merged
sivchari merged 1 commit intomainfrom
feat/integration-tests
Feb 3, 2026
Merged

test: add integration tests for CREATE TABLE / INSERT / SELECT#16
sivchari merged 1 commit intomainfrom
feat/integration-tests

Conversation

@sivchari
Copy link
Copy Markdown
Owner

@sivchari sivchari commented Feb 3, 2026

Summary

  • Add engine unit tests for DDL/DML operations
  • Add HTTP integration tests via axum test utilities

Test cases

Engine unit tests (engine/src/executor.rs)

  • test_create_table_insert_select - Basic DDL/DML flow
  • test_select_with_where - WHERE clause filtering
  • test_aggregate_functions - COUNT, SUM, AVG

Server integration tests (server/tests/integration_test.rs)

  • test_health_check - Health endpoint
  • test_select_literal - Basic SELECT
  • test_create_table_insert_select - Full DDL/DML via HTTP
  • test_select_with_where_clause - Filtering via HTTP
  • test_aggregate_query - Aggregates via HTTP
  • test_login_request - Dummy auth endpoint
  • test_sql_error_handling - Error response format

Test plan

  • cargo test -p engine passes (5 tests)
  • cargo test -p server passes (7 integration tests)

- Add engine unit tests for DDL/DML operations
- Add HTTP integration tests via axum test utilities
- Test cases include:
  - Health check endpoint
  - SELECT literal values
  - CREATE TABLE / INSERT / SELECT flow
  - WHERE clause filtering
  - Aggregate functions (COUNT, SUM)
  - Login request (dummy auth)
  - SQL error handling
@sivchari sivchari merged commit 91b36fc into main Feb 3, 2026
1 check passed
@sivchari sivchari deleted the feat/integration-tests branch February 3, 2026 09:36
@github-actions github-actions bot mentioned this pull request Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant