SVCS - English Documentation
Loading...
Searching...
No Matches
svcs::test::cli::utils::InitCommandIntegrationTest Class Reference

Test fixture for InitCommand integration tests. More...

#include <InitCommandIntegrationTest.hxx>

Inheritance diagram for svcs::test::cli::utils::InitCommandIntegrationTest:

Protected Member Functions

void SetUp () override
 Sets up the test environment.
void TearDown () override
 Tears down the test environment.

Protected Attributes

std::shared_ptr< MockSubjectmockEventBus
 Mock event bus for capturing system notifications.
std::shared_ptr< RepositoryManagerrepoManager
 Real RepositoryManager instance under test.
std::unique_ptr< InitCommandcommand
 InitCommand instance under test.
std::filesystem::path testDir
 Path to the temporary directory created for the test.

Detailed Description

Test fixture for InitCommand integration tests.

Manages the setup and teardown of a temporary, isolated directory on the filesystem for each test case. It uses the real RepositoryManager to test actual repository creation logic and a MockSubject to verify event publications.

Member Function Documentation

◆ SetUp()

void svcs::test::cli::utils::InitCommandIntegrationTest::SetUp ( )
overrideprotected

Sets up the test environment.

Creates a unique temporary directory, changes the current path to it, and initializes the RepositoryManager and InitCommand.

◆ TearDown()

void svcs::test::cli::utils::InitCommandIntegrationTest::TearDown ( )
overrideprotected

Tears down the test environment.

Restores the original current path and recursively removes the temporary directory.


The documentation for this class was generated from the following files: