Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ebassi/mutest

A BDD testing framework for C, inspired by Mocha
https://github.com/ebassi/mutest

bdd-framework bdd-style-testing-framework c c99 jasmine mocha test-framework testing

Last synced: 3 months ago
JSON representation

A BDD testing framework for C, inspired by Mocha

Awesome Lists containing this project

README

        

## µTest - A small C testing library

## What is µTest

µTest aims to be a small unit testing library for C projects, with an API
heavily modelled on high level [Behavior-Driver Development][bdd] frameworks
like [Jasmine][jasminejs] or [Mocha][mochajs].

µTest is written in C99, and can be used on multiple platforms.

### Features

- Small API footprint
- Easy to use
- Portable
- Zero dependencies
- Supports [TAP](https://testanything.org)

### Screenshot

![µTest on Linux](./mutest-mocha-format.png)

![µTest on Windows, using MSYS2](./mutest-msys2.png)

[bdd]: https://en.wikipedia.org/wiki/Behavior-driven_development
[jasminejs]: https://jasmine.github.io/
[mochajs]: https://mochajs.org/

**WARNING**: µTest's API is still in flux!

---

## Getting Started

### Building µTest

Simply clone this repository, and use [Meson](http://mesonbuild.com) to
generate the appropriate build instructions:

```sh
$ git clone https://github.com/ebassi/mutest.git
$ cd mutest
$ meson _build .
$ cd _build
$ ninja
$ meson test
$ sudo ninja install
```

### Using µTest

The documentation of µTest is [available online](https://ebassi.github.io/mutest/mutest.md.html).

### Contributing

See the [Contribution guide](./CONTRIBUTING.md).

## License

µTest is released under the terms of the [MIT](./LICENSE.txt) license.