Mattermost is increasing the unit test coverage for the mmctl CLI tool. Through the use of a mocked client that will simulate the interactions with the server, the goal is to create a suite of tests that check the tool's behavior in a flexible and robust way.
This Help Wanted issue covers the addition of unit tests to the ChannelGroupEnableCmd command, in the commands/group.go file. The expected way to add these tests is to create a test function in the commands/group_test.go file and add one s.Run block for each possible test case.
For more information on how to add a unit test to mmctl, take a look at the campaign blogpost: https://developers.mattermost.com/blog/unit-testing-mmctl-commands/
There is no new functionality to test as part of this ticket, only the tests are modified.