mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 20:39:35 +00:00
New translations running-tests.mdx (Russian)
[ci skip]
This commit is contained in:
45
docs-crowdin-export/ru-RU/docs/testing/running-tests.mdx.mdx
Normal file
45
docs-crowdin-export/ru-RU/docs/testing/running-tests.mdx.mdx
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
sidebar_label: Running tests
|
||||
---
|
||||
|
||||
# Running Tests
|
||||
|
||||
## Execution
|
||||
|
||||
```bash
|
||||
dcr test
|
||||
```
|
||||
|
||||
Builds the project, then compiles and runs test files from `tests/`.
|
||||
|
||||
## Profiles
|
||||
|
||||
```bash
|
||||
dcr test # debug (default)
|
||||
dcr test --release # release
|
||||
dcr test --debug # explicit debug
|
||||
```
|
||||
|
||||
## Output
|
||||
|
||||
```
|
||||
=====================
|
||||
Testsuite summary
|
||||
=====================
|
||||
TOTAL: 5
|
||||
PASS: 3
|
||||
SKIP: 1
|
||||
FAIL: 1
|
||||
=====================
|
||||
```
|
||||
|
||||
## Exit code
|
||||
|
||||
* 0 — all tests passed (FAIL = 0)
|
||||
* 1 — test failures or build error
|
||||
|
||||
## What gets built
|
||||
|
||||
* All `.c` files from `tests/` (`.cpp` not supported)
|
||||
* Include path: `tests/` (for `dcr_test.h`)
|
||||
* Linked with project if `package.type = "lib"` or `kind = "staticlib"`/`"sharedlib"`
|
||||
Reference in New Issue
Block a user