Search Unity

[Tutorial] Unit Testing in Unity

Discussion in 'Scripting' started by xjjon, Nov 29, 2018.

  1. xjjon

    xjjon

    Joined:
    Apr 15, 2016
    Posts:
    612
    I noticed a lot of Unity resources and tutorials don't talk about testing so I decided to write a tutorial going over the basics. It's targeted towards people who are comfortable with C# but want to take their code to the next level and leverage best practices and write clean code. Part of Unity's user base are the indie/hobbyist but there's no reason they shouldn't follow best practices as well.

    Tutorial can be found on my blog here.

    Comments, feedback, and requests would be appreciated. I plan to write more about this topic in the future and cover some more advanced testing techniques like mocking/stubbing and functional testing.
     
  2. Skelly1983

    Skelly1983

    Joined:
    Mar 9, 2017
    Posts:
    17
    I know it an old post but am shocked no one has thanked you for sharing this post, so I would like to take this moment to say thanks!
     
    samuelmorais and Boz0r like this.
  3. nhanc18

    nhanc18

    Joined:
    Jul 29, 2019
    Posts:
    12
    Thank you
     
  4. Cleverlie

    Cleverlie

    Joined:
    Dec 23, 2013
    Posts:
    219
    thanks a lot!
     
  5. danUnity

    danUnity

    Joined:
    Apr 28, 2015
    Posts:
    229
    Thanks man