SVCS - English Documentation
Loading...
Searching...
No Matches
HistoryCommandTest.cxx File Reference

Integration tests for the HistoryCommand class, covering core functionality, format options, limit handling, and argument validation. More...

Namespaces

namespace  svcs::test
 Comprehensive testing framework for SVCS version control system.
namespace  svcs::test::cli
 Unit tests for command-line interface components.

Functions

 svcs::test::cli::TEST_F (HistoryCommandTest, DebugCommitHistory)
 svcs::test::cli::TEST_F (HistoryCommandTest, HistoryNoCommits)
 svcs::test::cli::TEST_F (HistoryCommandTest, HistoryWithCommits)
 svcs::test::cli::TEST_F (HistoryCommandTest, HistoryOnelineFormat)
 svcs::test::cli::TEST_F (HistoryCommandTest, DebugLastNCommitsDetailed)
 svcs::test::cli::TEST_F (HistoryCommandTest, HistoryLastNWithOneline)
 svcs::test::cli::TEST_F (HistoryCommandTest, ErrorWhenNoRepository)
 svcs::test::cli::TEST_F (HistoryCommandTest, ShowHelp)
 svcs::test::cli::TEST_F (HistoryCommandTest, ErrorMissingLimitValue)
 svcs::test::cli::TEST_F (HistoryCommandTest, ErrorInvalidLimitValue)
 svcs::test::cli::TEST_F (HistoryCommandTest, ErrorNegativeLimit)
 svcs::test::cli::TEST_F (HistoryCommandTest, ErrorZeroLimit)
 svcs::test::cli::TEST_F (HistoryCommandTest, ErrorUnknownOption)
 svcs::test::cli::TEST_F (HistoryCommandTest, ErrorMutuallyExclusiveOptions)
 svcs::test::cli::TEST_F (HistoryCommandTest, HistoryFullDetails)

Detailed Description

Integration tests for the HistoryCommand class, covering core functionality, format options, limit handling, and argument validation.

Integration tests for the HistoryCommand class, covering history display, options (–oneline, –last N, –full), and argument validation.

This file implements the test cases for the HistoryCommandTest fixture. It verifies the command's behavior in various repository states and rigorously checks argument parsing and error reporting for all supported flags. Two tests include verbose debugging output to std::cout to assist in tracing the internal state of the repository manager and the event notifications.