Dokumentation

Build and test configuration

Telling Coroid how to build and test your project, and why getting this right matters more than anything else you configure.

An agent that cannot build and test your project cannot verify its own work. Everything downstream — quality gates, review, the confidence you place in a pull request — rests on these commands being correct.

Coroid detects them when a project is created. Check what it found.

What Coroid needs

CommandUsed for
InstallRestoring dependencies in a clean workspace
BuildConfirming the project compiles
TestRunning your suite and reading the result

The workspace is clean and disposable per task, so every command must work from a fresh clone with nothing cached and nothing pre-installed.

Where detection commonly gets it wrong

Monorepos. Commands live in a subdirectory, or need a workspace filter. The root-level command may exist but do the wrong thing.

Setup steps. Suites needing code generation, a migration, or a fixture build before they run. Detection sees the test command and misses its prerequisite.

Service dependencies. Tests that need a database, cache or queue running. If your suite assumes localhost:5432 is live, it will fail in a clean workspace.

Environment variables. Suites that read configuration from an .env that is not in the repository.

Symptoms of a wrong configuration

The signature is tasks failing during verification for reasons unrelated to the change — the same failure on every task, at the same stage, regardless of what was asked for.

If the first thing you see is a failure before any code was written, it is almost always the build command. If it fails after the change is made, it is usually the test command or something the tests depend on.

Containers

Where a project can be containerised, Coroid can use that as the execution environment — which solves service dependencies and environment drift in one move, because the container already encodes them.

If you have a working Dockerfile or Compose file that runs your tests, that is usually the most reliable configuration available to you.

Language support

Agents work in any language, but how much Coroid can verify on its own varies — semantic navigation in particular. See language support and the agent environment for what is installed in the workspace and which languages have a language server.

Getting these commands right matters more than the language you are in. A correct build and test pair in a weakly supported language beats a wrong one in a well-supported language.