Skip to content

pboechat/uunit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uunit

A simple xUnit style framework for running unit tests inside Unity.


Port from the original code (in BooScript) to C#.

Features added for 0.4:

1.	New assertions (on UUnitAssert).
2.	UUnitTestRunner run all tests (Ctrl + Shift + T on Unity).

The official project page can be found at: http://www.unifycommunity.com/wiki/index.php?title=UUnit


This project was not started by me, but by the unity forum member "Ryuuguu" (http://forum.unity3d.com/threads/6036-UUnit)

Introduction

First of all, you have to download and import UUnit package to your project. I suggest all test cases to be located on a separate folder inside your project's "Assets root" (ie: Assets/Scripts-tests/). It's also a good practice to organize your test cases on folders that mirror the structure of the code being tested. (ie.: Assets/Scripts/Weapons/Laser.cs Assets/Scripts-tests/Weapons/LaserTest.cs) Here's a quick recipe for a new test case (feel free to copy and paste it to your file):

using UnityEngine;

public class YourClassTest : UUnitTestCase
{
  protected override void SetUp() {
  }

  [UUnitTest]
  public void ShouldDoSomething() {
  }

  protected override void TearDown() {
  }
  
}

About

a simple xUnit style framework for running unit tests inside Unity

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy