Testing and Coverage - sms-trevature/user-interface GitHub Wiki
Testing and Coverage
We used JUnit and CodePro Analytix for testing. The target percentage of testing coverage is 70%-80%. Through this, we are able to appropriately test our code to make sure it is stable for production. The average code coverage throughout the application, which goes through all three microservices: Interview API, Survey Service, and User Service was at 36%. This is just above half of the low range of the targeted percentage.
Interview API
Interview API's code coverage was at 2.1%. The results of the test were not sufficient enough for this application to properly be used by a client. This microservice should be more thoroughly tested going forward as we aim to get this production closer to production.
Survey Service
Test coverage for survey service was shown at 100%. Moving forward there will be more functionality added to survey service in order to compliment the constantly scaling staging management service application. Therefore more testing still needs to be implemented to prepare for incoming development.
User Service
Results for our user service was at 6.3%. Although this was slightly improved when compared to Interview API's test results, more thorough testing must be done before any considerations of bringing this service closer to production.