File: Testing.md

package info (click to toggle)
unicorn-engine 2.1.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,912 kB
  • sloc: ansic: 379,830; python: 9,213; sh: 9,011; java: 8,609; ruby: 4,241; pascal: 1,805; haskell: 1,379; xml: 490; cs: 424; makefile: 348; cpp: 298; asm: 64
file content (13 lines) | stat: -rw-r--r-- 596 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# Testing in Unicorn

Unicorn focus on the testing to reduce bugs and ensure the expected behaviors. The `tests/` directory contains a few subdirectories for testing purposes.

- `unit/`: C unit tests since Unicorn 2.
- `regress/`: The regression tests written in Python and C, imported from Unicorn 1.
- `rust-tests/`: The tests written in rust.
- `fuzz/`: The fuzz drivers for OSS-Fuzz.
- `benchmarks/`: The benchmark suite imported from Unicorn 1.

## Contribution Guide

Generally, it is ideal to add new tests whenever a PR is made. `unit/` should be the first place for the new tests to go.