


How to set up Codemagic to automate unit testing and building for Unity projects.How to set up unit tests for our Pong game.How to create a basic Pong game, which we’ll be using as a sample project.The problems with setting up unit test automation in Unity.Why automated unit tests are necessary for effective Agile development.

So today, let’s discuss how to create and automate Unit tests in Unity using a CI/CD pipeline built with Codemagic. With unit testing, by splitting your codebase into tiny logical units and checking that each one works at a granular level, you ensure solid foundations for your app and avoid code regressions.īut setting up unit tests and having them run automatically can be quite tricky in Unity. In particular, unit testing is a must, although it’s complex and sometimes a bit boring. The more you work on larger Unity projects, the more you see that there are areas of expertise that are fundamental to building a solid, long-term project that you may not have considered while working with smaller Unity projects. This post has been updated in July 2022 to introduce some fixes to the codemagic.yaml file and to reflect that you no longer need to contact Codemagic solution engineers to set up Unity machines for you, and you start using Unity on Codemagic right away, as it is preinstalled on Mac, Linux and Windows build machines.
