ワンクリックで
sqlitecpp-testing-practices
GoogleTest patterns and testing practices for SQLiteCpp test coverage and structure.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
GoogleTest patterns and testing practices for SQLiteCpp test coverage and structure.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
SQLiteCpp CI workflow patterns. Use for GitHub Actions, AppVeyor, Travis, matrices, or test steps.
Running shell commands on this Windows checkout via the PowerShell and Bash tools, and passing multi-line or quoted arguments (commit messages, PR bodies, file content) without corruption. Use when running git or gh with multi-line or quoted input, writing a commit message or PR body from the command line, reaching for a heredoc or here-string, or after a message or body comes out wrapped in stray characters such as a leading and trailing `@`.
SQLiteCpp change workflow checklists for API, tests, build files, and CHANGELOG updates. Use when adding a method or class, editing build files, or writing a CHANGELOG entry for a PR.
SQLiteCpp coding standards and API rules for core edits, public headers, style, and Doxygen.
Default response behavior for AI coding agents: professional, factual, neutral tone with calibrated critical evaluation. Baseline for every task: implementation, code review, debugging, planning, research, evaluation, Q&A.
Editing conventions for files under `.claude/skills/**` (markdown style, frontmatter format, SKILL.md vs `references/` split, upstream-vendored skills). Use when creating a new skill, editing any `SKILL.md` or `references/*.md` file, refactoring a skill description, or after adding/removing a skill.
| name | sqlitecpp-testing-practices |
| description | GoogleTest patterns and testing practices for SQLiteCpp test coverage and structure. |
googletest/ 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-meson