Files
dcr/docs-crowdin-export/ru-RU/docs/testing/running-tests.mdx.mdx
2026-07-06 02:21:56 +08:00

46 lines
819 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
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"`)