Re: Documentation to write test cases for the functionalities in alfresco community edition
I am not sure if there is any specific documentation available in docs.alfresco.com for writing test cases. You should take reference from alfresco sdk sample and follow the same approach while writing test cases. You can write simple junit test cases as well as Integration test cases.
Refer this sdk doc for details on integration test: