mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-31 23:14:21 +01:00
enable tracing subscriber in integration tests
This commit is contained in:
@@ -64,9 +64,6 @@ impl TempDatabase {
|
||||
}
|
||||
|
||||
pub fn new_with_rusqlite(table_sql: &str, enable_indexes: bool) -> Self {
|
||||
let _ = tracing_subscriber::fmt()
|
||||
.with_max_level(tracing::Level::TRACE)
|
||||
.finish();
|
||||
let mut path = TempDir::new().unwrap().keep();
|
||||
path.push("test.db");
|
||||
{
|
||||
|
||||
@@ -1,16 +1,3 @@
|
||||
mod test_cdc;
|
||||
mod test_function_rowid;
|
||||
mod test_wal_api;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use tracing_subscriber::EnvFilter;
|
||||
|
||||
#[ctor::ctor]
|
||||
fn init() {
|
||||
tracing_subscriber::fmt()
|
||||
.with_env_filter(EnvFilter::from_default_env())
|
||||
.with_ansi(false)
|
||||
.init();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,3 +5,16 @@ mod fuzz_transaction;
|
||||
mod pragma;
|
||||
mod query_processing;
|
||||
mod wal;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use tracing_subscriber::EnvFilter;
|
||||
|
||||
#[ctor::ctor]
|
||||
fn init() {
|
||||
tracing_subscriber::fmt()
|
||||
.with_env_filter(EnvFilter::from_default_env())
|
||||
.with_ansi(false)
|
||||
.init();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user