πŸ”₯ New One-click Google Test setup for Replit C++

Replit Google TestAuto-Setup πŸš€

A fully automated Google Test + CMake setup for Replit. No config, no headacheβ€”just write tests, hit Run, and ship better C++ code.

Includes a menu-based runner: choose between Run main_app or Run GoogleTests directly from the Replit Run button.

✨ Why This Tool is a Game Changer

⚑ One Command Setup

Automatically configures Google Test, CMake, and project structure in a single step.

🧩 Clean CMake Layout

Separate executables for main_app and test_runner with shared library code.

πŸ§ͺ Test Runner Menu

Menu-driven script: choose to run your app or tests every time you click Run in Replit.

πŸ“ Organized Project

Auto-generates src/, tests/, and reusable library code (add_lib).

🧹 Instant Cleanup

Cleanup script resets your Replit back to a fresh C++ template with a single command.

πŸš€ Beginner Friendly

Perfect for students and professionals learning unit testing and TDD on Replit.

⚑ One Command Installation

Open the Shell tab in your Replit C++ project and paste this:

bash <(curl -s https://raw.githubusercontent.com/CodeWithSouma/replit-gtest-setup/main/setup_gtest.sh)

This will automatically:

🧹 Cleanup & Restore Default

Want to revert your Replit project back to a clean C++ template?

bash <(curl -s https://raw.githubusercontent.com/CodeWithSouma/replit-gtest-setup/main/cleanup_gtest.sh)

This will remove all GTest/CMake files, runner scripts, and restore a simple main.cpp with Hello World.

πŸ“¦ Download & Source Code

Prefer to explore the code locally or customize the installer?