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

46 lines
1.0 KiB
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: Запуск тестов
---
# Запуск тестов
## Выполнение
```bash
Тест DCR
```
Выполняет сборку проекта, а затем компилирует и запускает тестовые файлы из каталога `tests/`.
## Профили
```bash
dcr test # debug (по умолчанию)
dcr test --release # release
dcr test --debug # явно debug
```
## Вывод
```
=====================
Сводка результатов набора тестов
=====================
ИСПОЛЬЗОВАНО: 5
ПРОЙДЕНО: 3
ПРОПУЩЕНО: 1
НЕ ПРОЙДЕНО: 1
=====================
```
## Код возврата
* 0 — все тесты пройдены (FAIL = 0)
* 1 — есть упавшие тесты
## Что строится
* Все C/C++ файлы из `tests/`
* Include path: `tests/` (для `dcr_test.h`)
* Линкуется с основным проектом (если `type = "lib"`)