GithubHelp home page GithubHelp logo

skyspiral7 / redunit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from koksyn/redunit

0.0 0.0 0.0 1.1 MB

RedUnit is a free, open source unit testing framework for Red language

License: MIT License

Red 100.00%

redunit's Introduction

RedUnit

RedUnit is a free, open source unit testing framework for Red language. Inspired by xUnit, nUnit, PhpUnit and other similar libraries.

Motivation

The main reason is the possibility to building your own projects faster and easier.

The TDD (test driven-development) approach is now possible using the RedUnit tool, so you can eliminate bad cases at the early stage.

Docs

Running the tests

The RedUnit unit test framework obviously can't test itself - so for now it does not have any tests. In the future releases I plan to write some simple scripts - to be able to test particular parts of RedUnit.

Compatibility

Project was tested with red-26may24-b26ec9334.

Features (Roadmap)

  • v 0.0.1-Snapshot special assertion for expected error
  • v 0.0.1-Alpha1 logic assertions for tests
  • v 0.0.1-Alpha2 reducing tests execution time, using string buffer instead of console output
  • v 0.0.1-RC splitting script into modules
  • v 0.0.1 Rebuilding whole project, because of dividing project into more repositories
  • v 0.0.2 running tests from many files at once
  • v 0.0.3 redesigning the console output for statuses of tests
  • v 0.0.4 ability to mark tests as incomplete/skipped/risky
  • v 0.0.5 data providers for testing a huge sets of data
  • v 0.0.6 tests execution from compiled lib as CLI
  • v 0.0.7 extending expected-error assertion by defining a type of error we expect
  • v 0.0.8 simple mocks for objects and methods
  • v 0.0.9 'method' assertions for mocks - checking/expecting the mock method was executed
  • v 0.1.0 'argument' assertions for mock methods - checking/expecting an arguments of mock methods
  • v 0.1.1 'return' assertions for mock methods - forcing/expecting that mock method will return specific value
  • v 0.1.2 - 0.1.9 refactoring, goal: increase execution time and readability
  • v 0.2.0 redesigning an API of all public methods - goal: cohesion
  • v 0.3.0 module to detect code coverage of tested objects

Historical note

This tool was earlier a part of various tools, that I've created for Red language. When project became bigger, it was divided into a independent repositories like this.

redunit's People

Contributors

koksyn avatar skyspiral7 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.