Git Product home page Git Product logo

gdunit3's Introduction

GdUnit3 GitHub release (latest by date)

A Godot Integrated Unit Testing Framework


GitHub branch checks state



What is GdUnit3

GdUnit3 is a framework for testing GdScrips and Scenes within the Godot editor. GdUnit3 is very useful for test-driven development and will help you get your code bug-free.

Features

  • Fully integrated in the Godot editor
  • Run test-suite(s) by using the context menu on FileSystem, ScriptEditor or GdUnitInspector
  • Create test's directly from the ScriptEditor
  • A spacious set of Asserts use to verify your code
  • Argument matchers to verify the behavior of a function call by a specified argument type.
  • Fluent syntax support
  • Test Fuzzing support
  • Mocking a class to simulate the implementation which you define the output of certain function
  • Spy on a instance to verify that a function has been called with certain parameters.
  • Mock or Spy on a Scene
  • Provides a scene runner to simulate interactions on a scene
    • Simulate by Input events like mouse and/or keyboard
    • Simulate scene processing by a certain number of frames
    • Simulate scene proccessing by waiting for a specific signal
  • Update Notifier to install latest version from GitHub
  • Command Line Tool [[Command-Line-Tool]]

Short Example

# this assertion succeeds
assert_int(13).is_not_negative()

# this assertion fail because the value '-13' is negative
assert_int(-13).is_not_negative()

To Install the GdUnit3 Plugin

You have to install the GdUnit3 plugin over the AssetLib in the Godot Editor. image

  1. Select the tab AssetLib in the middle on the top
  2. Enter GdUnit3 in the search bar
  3. Select GdUnit3 and press the install button
  4. Finally you have to activate the plugin

image

  1. Choose Project->Project Settings, click the Plugins tab and activate GdUnit.

image

  1. After activation the GdUnit3 inspector is displayed in the top left
  2. Done, GdUnit is ready to use

You are welcome to report bugs or create new feature requests. I would also appreciate feedback.

Documentation

GitHub issues GitHub closed issues
GitHub top language GitHub code size in bytes

gdunit3's People

Contributors

clemens-tolboom avatar derkork avatar mikeschulze avatar wcubed avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.