Skip to content

Commit 4cafa1e

Browse files
committed
add a machanism to skip some tests on some dbs
1 parent 67e51f8 commit 4cafa1e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

tests/index.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,15 @@ async fn test_files() {
159159
if test_file_path.extension().unwrap_or_default() != "sql" {
160160
continue;
161161
}
162+
if stem.contains(&format!("no{}", app_data.db.to_string().to_lowercase())) {
163+
// skipping because the test does not support the database we are using
164+
log::info!(
165+
"Skipping test file {} on database {}",
166+
test_file_path_string,
167+
app_data.db
168+
);
169+
continue;
170+
}
162171
if test_file_path_string.contains(&format!("no{}", app_data.db.to_string().to_lowercase()))
163172
{
164173
// skipping because the test does not support the database

tests/sql_test_files/it_works_columns_component_json.sql renamed to tests/sql_test_files/it_works_columns_component_json_nomssql.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
-- this test is skipped on MSSQL because its json_object function has a different syntax
12
select 'columns' as component;
2-
33
select
44
JSON_OBJECT('description', 'It works !') as item,
55
JSON_OBJECT('description', 'It works !') as item

0 commit comments

Comments
 (0)