I am a beginner for Mattermost.I have setup complete mattermost and it runs appropriately.Kindly let me know how can I run and test the test case files like 'post_test.go'.
for running mattermost test you should run make test
cause there are a few thing that need to be run first. sadly you can't run separate tests files
You can change directory where the test file is located and then do something like:
go test -test.run="^TestCreatePost$"
You could run an individual the test case like so
go test -v -run={NameOfTestFunc} ./{relative_folder_where_test_is}
Example:
go test -v -run=TestGetUsersInChannel ./api4