Hello @Dani_S ,
You've done a solid job covering the basic scenarios, but there are some gaps in your test coverage.
- Your current tests don't verify the
SetLoggermethod at all. You need to test scenarios like invalid log paths, missing directories, case-insensitive log levels, and what happens when logging initialization fails. - You need comprehensive tests for malformed arguments, empty strings, special characters, and boundary conditions.
- You test some exit codes but not all paths systematically.
- Your integration tests only check whether files exist, not whether they contain valid data.
I have created some tests to illustrate. Use them as references to expand your own test suite.
Happy holidays.