GoogleTest patterns and testing practices for SQLiteCpp test coverage and structure.
62
72%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.claude/skills/sqlitecpp-testing-practices/SKILL.mdgoogletest/ fallback).tests/*_test.cpp (see tests/Database_test.cpp).@ingroup tests.#include <gtest/gtest.h>
#include <SQLiteCpp/Database.h>
TEST(DatabaseTest, CanOpenReadWriteDatabase)
{
// Arrange: setup test database
SQLite::Database db(":memory:", SQLite::OPEN_READWRITE | SQLite::OPEN_CREATE);
// Act: perform operation
db.exec("CREATE TABLE test (id INTEGER PRIMARY KEY)");
// Assert: verify behavior
EXPECT_EQ(1, db.exec("INSERT INTO test DEFAULT VALUES"));
}tests/NewClass_test.cpp.CMakeLists.txt under SQLITECPP_TESTS.meson.build under sqlitecpp_test_srcs.:memory: databases when possible.tests/Database_test.cpp).TEST() for independent tests; use TEST_F() only when a shared fixture is needed.# CMake (from build dir)
ctest --output-on-failure
bin/SQLiteCpp_tests --gtest_filter=Database.*
# Meson
meson test -C builddir
meson test -C builddir --test-args="--gtest_filter=Database.*"tests/Database_test.cppCMakeLists.txt (SQLITECPP_TESTS)meson.build (sqlitecpp_test_srcs)sqlitecpp-workflowsqlitecpp-build-cmake, sqlitecpp-build-meson736fb31
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.