Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/integration/DatabaseIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ public function test_real_vector_support_detection() {

$this->assertIsBool( $has_vector_support, 'Vector support should return boolean' );

// Log the result for debugging
// Emit the result as a test diagnostic for debugging.
$db_type = $this->database->get_db_type();
error_log( "WPVDB Integration Test: {$db_type} vector support: " . ( $has_vector_support ? 'true' : 'false' ) );
fwrite( STDERR, "WPVDB Integration Test: {$db_type} vector support: " . ( $has_vector_support ? 'true' : 'false' ) . "\n" );
}

/**
Expand Down Expand Up @@ -301,6 +301,6 @@ public function test_database_performance() {
$this->assertEquals( $num_records, (int) $count, 'Should have correct record count' );
$this->assertLessThan( 1.0, $query_time, 'COUNT query should complete quickly' );

error_log( "WPVDB Performance Test: Inserted {$num_records} records in {$insert_time}s, queried in {$query_time}s" );
fwrite( STDERR, "WPVDB Performance Test: Inserted {$num_records} records in {$insert_time}s, queried in {$query_time}s\n" );
}
}