Skip to content

Conversation

@lovasoa
Copy link
Collaborator

@lovasoa lovasoa commented Nov 24, 2025

  • Simplified SQL test files by removing unnecessary components and restructuring queries to focus on expected vs actual results.
  • Updated the request handling in run_sql_test to differentiate between JSON and HTML responses based on test file content.
  • Enhanced error handling and assertions for both JSON and HTML responses to improve test reliability and clarity.
  • Removed redundant code and improved readability in the test execution flow.

- Simplified SQL test files by removing unnecessary components and restructuring queries to focus on expected vs actual results.
- Updated the request handling in `run_sql_test` to differentiate between JSON and HTML responses based on test file content.
- Enhanced error handling and assertions for both JSON and HTML responses to improve test reliability and clarity.
- Removed redundant code and improved readability in the test execution flow.
- Changed references in various test files to point to the new `simple.sql` instead of the outdated `it_works_simple.sql`.
- Removed several obsolete SQL test files that are no longer needed, streamlining the test suite.
- Updated assertions and request paths in the test cases to reflect the new structure and improve clarity.
- Added a new function `format_error` to improve error reporting in SQL test assertions, capturing detailed error descriptions and backtraces.
- Updated SQL syntax in `sqrt.sql` to use `INT` instead of `integer` for consistency with SQL standards.
@lovasoa lovasoa merged commit 95f228f into main Nov 25, 2025
11 checks passed
@lovasoa lovasoa deleted the simplify-tests branch November 25, 2025 23:45
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.

2 participants