-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Make tests seperated crate
- Loading branch information
Showing
18 changed files
with
186 additions
and
457 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
[package] | ||
name = "tests" | ||
description = "test suite for pg_analytics" | ||
version = "0.2.1" | ||
edition = "2021" | ||
license = "AGPL-3.0" | ||
|
||
[lib] | ||
crate-type = ["rlib"] | ||
|
||
[features] | ||
pg17 = ["pgrx/pg17"] | ||
pg16 = ["pgrx/pg16"] | ||
pg15 = ["pgrx/pg15"] | ||
pg14 = ["pgrx/pg14"] | ||
pg13 = ["pgrx/pg13"] | ||
|
||
[dependencies] | ||
|
||
[dev-dependencies] | ||
anyhow = "1.0.88" | ||
async-std = { version = "1.13.0", features = ["tokio1", "attributes"] } | ||
chrono = "0.4.38" | ||
duckdb = { git = "https://github.com/paradedb/duckdb-rs.git", features = [ | ||
"bundled", | ||
"extensions-full", | ||
], rev = "e532dd6" } | ||
pgrx = "0.12.6" | ||
serde = "1.0.210" | ||
serde_json = "1.0.128" | ||
signal-hook = "0.3.17" | ||
thiserror = "1.0.63" | ||
uuid = "1.10.0" | ||
aws-config = "1.5.6" | ||
aws-sdk-s3 = "1.49.0" | ||
bigdecimal = { version = "0.3.1", features = ["serde"] } | ||
bytes = "1.7.1" | ||
datafusion = "37.1.0" | ||
deltalake = { version = "0.17.3", features = ["datafusion"] } | ||
futures = "0.3.30" | ||
rstest = "0.19.0" | ||
serde_arrow = { version = "0.11.7", features = ["arrow-51"] } | ||
soa_derive = "0.13.0" | ||
sqlx = { version = "0.7.4", features = [ | ||
"postgres", | ||
"runtime-async-std", | ||
"time", | ||
"bigdecimal", | ||
"uuid", | ||
"chrono", | ||
] } | ||
tempfile = "3.12.0" | ||
testcontainers = "0.16.7" | ||
testcontainers-modules = { version = "0.4.3", features = ["localstack"] } | ||
time = { version = "0.3.36", features = ["serde"] } | ||
geojson = "0.24.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Test suite for `pg_analytics | ||
|
||
This is the test suite for the `pg_analytics` extension. | ||
|
||
An example of doing all that's necessary to run the tests is, from the root of the repo is: | ||
|
||
```shell | ||
#! /bin/sh | ||
|
||
set -x | ||
export DATABASE_URL=postgresql://localhost:28816/pg_analytics | ||
export RUST_BACKTRACE=1 | ||
cargo pgrx stop --package pg_analytics | ||
cargo pgrx install --package pg_analytics --pg-config ~/.pgrx/16.4/pgrx-install/bin/pg_config | ||
cargo pgrx start --package pg_analytics | ||
|
||
cargo test --package tests --features pg16 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) 2023-2024 Retake, Inc. | ||
// | ||
// This file is part of ParadeDB - Postgres for Search and Analytics | ||
// | ||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU Affero General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU Affero General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Affero General Public License | ||
// along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
#[allow(dead_code)] | ||
pub fn this_file_intentionally_left_blank() {} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.