Testing using CodeBuild
Unit testing is an integral part of any software development, it helps you to evaluate the quality of the code before it is deployed to production. Developers write test cases against the code to find flaws in the code and make sure no scenario is left untested. Modern test frameworks such as JUnit for Java, JTest for JavaScript, pytest for Python, and NUnit for .NET benefit from easy integration with the CodeBuild service.
CodeBuild allows developers to create test reports based on the metadata created by the different testing frameworks for unit testing, configuration testing, and functional testing. CodeBuild reads the test metadata files created by the different testing frameworks, and based on that, helps us to visualize the test reports and create a time series view for the test cases.
The following are the file formats supported by CodeBuild as of writing this book:
- JUnit XML (
.xml
) - TestNG XML (
.xml
) - Cucumber JSON (
.json
) - NUnit...