mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 11:08:30 +00:00
46 lines
819 B
Plaintext
46 lines
819 B
Plaintext
---
|
||
sidebar_label: Запуск тестов
|
||
---
|
||
|
||
# Запуск тестов
|
||
|
||
## Execution
|
||
|
||
```bash
|
||
dcr test
|
||
```
|
||
|
||
Builds the project, then compiles and runs test files from `tests/`.
|
||
|
||
## Profiles
|
||
|
||
```bash
|
||
dcr test # debug (по умолчанию)
|
||
dcr test --release # release
|
||
dcr test --debug # явно debug
|
||
```
|
||
|
||
## Вывод
|
||
|
||
```
|
||
=====================
|
||
Testsuite summary
|
||
=====================
|
||
TOTAL: 5
|
||
PASS: 3
|
||
SKIP: 1
|
||
FAIL: 1
|
||
=====================
|
||
```
|
||
|
||
## Код возврата
|
||
|
||
* 0 — все тесты пройдены (FAIL = 0)
|
||
* 1 — есть упавшие тесты
|
||
|
||
## What gets built
|
||
|
||
* Все C/C++ файлы из `tests/`
|
||
* Include path: `tests/` (для `dcr_test.h`)
|
||
* Линкуется с основным проектом (если `type = "lib"`)
|