Unity Tutorial | Unit Testing

Veröffentlicht am: 06 März 2024
auf dem Kanal: Herbster Games
526
6

Explore these step-by-step instructions on Unit Testing in Unity and hands-on demonstrations that will empower you to streamline your development process and create high-quality games efficiently. Unlock the secrets to setting up unit testing in Unity flawlessly, and take your game dev journey to new heights by watching the video today!

Setting up Unit Testing in Unity can be challenging due to a common mistake beginners often make when creating the test folder within the directory. The error of labeling a script as an editor script can create a problem with game objects showing up with this error: "The script is an editor script." This tutorial addresses this issue and provides guidance on establishing unit testing to promote improved coding practices among developers.

Feel free to drop a comment in the session below if there is any question or topic you would like me to cover, and I will try to incorporate that into our future tutorial videos. Until next time!

Go ahead and smash that like button, share this tutorial, and hit subscribe for more awesome tutorial videos!

🐹 Subscribe here: https://bit.ly/HerbsterGames
🐹 Support us using this link whenever you buy assets from the Unity Asset Store with no extra cost to you: https://bit.ly/UnityAssetHerbsterGames
🐹 Support us on Patreon:   / herbstergames  
🐹 Join our Discord:   / discord  

[This video uses AI only for voiceover]

-----------------------------------------------------------------------------------------------------------------------------------------

Other tutorials:
Repeating Timer:    • Unity Tutorial | Repeating Timer  
Scriptable Object:    • Unity Tutorial | Scriptable Object  
Operator Overload:    • Unity Tutorial | Operator Overload  
Infinite Scrolling Background:    • Unity Tutorial | Infinite Scrolling Backgr...  
Camera Shake:    • Unity Tutorial | Camera Shake  
Mobile Notification Set Up:    • Unity Tutorial | Mobile Notification Set Up  
2D Hexagon Map Creation:    • Unity Tutorial | 2D Hexagon Map Creation  

00:00 Intro
00:17 Explanation of why Unit Testing is Great
00:35 Like, Share, and Subscribe (🐹 https://bit.ly/HerbsterGames 🐹)
00:47 Navigation to Unity to set up the Unit Test
01:08 Scripts Set Up: TestClass, TestManager
01:58 Test Script Explanation and Set Up
02:42 Running Test on the UI
02:47 Issue with "The script is an editor script."
03:59 Solution for using scripts from different folders than in the same folder as the test scripts
04:33 Continuation of the First Test
04:50 Generation message/logging inside the test
04:55 Negative Testing
05:19 Second Test
05:57 Unit Testing is great for all
06:16 Outro


Auf dieser Seite können Sie das Online-Video Unity Tutorial | Unit Testing mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Herbster Games 06 März 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 526 Mal angesehen und es wurde von 6 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!