In Salesforce, the test environment lives in Setup, Custom Settings and org-level metadata. None of it is in source control, and none of it reaches your team automatically. renmy runtime reads all of it from one properties file you commit.
Put a renmy.properties file in the project root and commit it. Every developer on the team then runs with the same database settings, governor limit enforcement, org defaults, custom setting seeds and tracing preferences, with nothing to configure by hand.
A project set up before v1.50.0 may have a nimbus.properties file with nimbus.* keys. That file and those keys keep working, and a project uses one file.
If you have used application.properties in Spring Boot or Quarkus, the format is the same. The configuration lives in your repo instead of in an org.
# renmy.properties - commit this to your repo
# Governor limits: catch violations before they reach the org
renmy.governor.mode=warn
# Org environment defaults
renmy.org.currency=EUR
renmy.org.locale=de_DE
renmy.org.timezone=Europe/Berlin
# Seed custom setting org defaults
renmy.seed.org-default.TriggerSettings__c=IsEnabled__c=true
renmy.seed.org-default.AppConfig__c=Endpoint__c=https://api.example.com,Retries__c=3
# Testing
renmy.test.parallel=4
renmy.test.timeout=30s
# Tracing (disabled by default, enable when debugging)
renmy.trace.enabled=false
renmy.trace.level=verboseYour local machine, your CI pipeline and your staging environment need different settings. A profile is a set of overrides for one of those contexts, defined in the same file. There are no separate config files and no environment-specific branches.
Prefix any property with %profile. to create a profile-specific override. Activate a profile with NIMBUS_PROFILE=ci or --profile ci. Properties without a prefix apply everywhere. Profile-specific values override the defaults.
# Default: relaxed for local development
renmy.governor.mode=warn
renmy.trace.enabled=true
renmy.trace.level=verbose
# CI: strict enforcement
%ci.renmy.governor.mode=strict
%ci.renmy.test.parallel=2
%ci.renmy.trace.enabled=false
# Staging: production-like limits
%staging.renmy.governor.mode=strict
%staging.renmy.test.timeout=120s# Activate a profile
NIMBUS_PROFILE=ci renmy test
# Or via CLI flag
renmy test --profile ciReference environment variables in your properties file with ${VAR} syntax. Add a default value with ${VAR:default}. This keeps secrets out of your committed config while still sharing the structure with your team.
# Use environment variables for secrets
renmy.db.url=${DATABASE_URL}
renmy.db.password=${DB_PASSWORD:localdev}
# CI can set these, local dev uses defaults
renmy.org=${SF_ORG:default}renmy runtime loads properties from three levels. Later levels override earlier ones, so an admin can set system-wide defaults and a project overrides what it needs.
/etc/renmy/renmy.propertiesCompany-wide defaults set by an admin. Lowest priority.~/.nimbus/renmy.propertiesPersonal preferences: your timezone, your editor port, your trace level../renmy.propertiesCommitted to git and shared with the team. Highest priority.Many Apex codebases read configuration from Custom Settings: feature flags, endpoint URLs, retry counts. In an org they are set through Setup. Locally you would need a @testSetup method in every test class to insert them.
With renmy.seed.org-default, you define the org-default values once in the properties file. Every test sees them without a @testSetup method, and the values are the same on every machine. Read them the same way as on the platform: MySettings__c.getOrgDefaults().
# Seed org-default custom settings in renmy.properties
renmy.seed.org-default.TriggerSettings__c=IsEnabled__c=true,RunValidation__c=true
renmy.seed.org-default.IntegrationConfig__c=Endpoint__c=https://api.example.com,ApiKey__c=test-key
renmy.seed.org-default.FeatureFlags__c=EnableNewUI__c=false,EnableBetaFeatures__c=trueOrg defaults can also be passed on the CLI, for one-off runs or CI overrides that should not touch the properties file:
# Seed via CLI flag (repeatable for multiple objects)
renmy test --org-default "TriggerSettings__c.IsEnabled__c=true"
renmy test --org-default "AppConfig__c.Endpoint__c=https://api.example.com,Retries__c=3"renmy runtime reads the project's metadata alongside the Apex. Permission Sets load from .permissionset-meta.xml files. Custom Metadata Types are discovered from .md-meta.xml files and can be queried with SOQL. Record Types are seeded from the project structure.
System.runAs() works locally. Set up a user with specific Permission Set assignments and test that your code respects object permissions, field-level security and SOQL WITH USER_MODE access checks, without an org.
Permission-dependent logic (does this profile see this field, does this user have create access) is testable on your machine, in milliseconds.
// Test permission-based logic locally
@isTest
static void testRestrictedAccess() {
// Create a user with specific permissions
User restrictedUser = new User(
ProfileId = restrictedProfileId,
Username = 'test@nimbus.dev'
);
System.runAs(restrictedUser) {
// Your code runs with this user's
// object and field permissions
try {
insert new Account(Name = 'Test');
System.assert(false, 'Should have failed');
} catch (DmlException e) {
// Permission enforced locally
}
}
}# Auto-seed RecordTypes from project metadata
renmy.seed.record-types=true
# Set default RecordType per object for inserts
# without explicit RecordTypeId (mirrors profile defaults)
renmy.default-record-type.Lead=Prospect_Record_Type
renmy.default-record-type.Case=Support_Case
# Seed ListViews not in your repo metadata
# (standard objects have built-in views in Salesforce)
renmy.seed.list-view.Lead.AllLeads=All Leads
renmy.seed.list-view.Lead.MyLeads=My Leads
# Custom Metadata Types are auto-discovered
# from your force-app/.../customMetadata/ dir
# and queryable via SOQL in testsRun renmy config init to write a documented renmy.properties file with every available property, its description and example profiles. Uncomment what you need and commit the file.
# Generate a documented renmy.properties file
renmy config init
# See current effective configuration (with sources)
renmy config show
# List all available properties
renmy config propertiesThe most used configuration properties, grouped by category. renmy config properties lists every one.
Where renmy runtime stores test data: embedded PostgreSQL, Docker, or an external instance.
| Property | Type | Default | Description |
|---|---|---|---|
renmy.db.provider | string | embedded | Database provider: embedded, docker, or external |
renmy.db.url | string | - | PostgreSQL connection string (overrides provider) |
renmy.db.name | string | (auto) | Database name override |
renmy.db.dir | string | .nimbus/db | Embedded Postgres data directory |
renmy.db.pool.max-connections | int | auto | Maximum database connections |
renmy.db.pool.idle-timeout | duration | 1m | Connection idle timeout |
renmy.db.lock-timeout | duration | 10s | Database lock timeout |
How tests execute: parallelism, timeouts, exclusions.
| Property | Type | Default | Description |
|---|---|---|---|
renmy.test.parallel | int | auto | Number of parallel test workers (Pro). Auto: the CPU count on Pro, 1 on Free |
renmy.test.timeout | duration | 60s | Timeout per test method |
renmy.test.fallback-to-cli | bool | false | Fall back to Salesforce CLI for unsupported features |
renmy.test.exclude | list | - | Exclude patterns (comma-separated) |
Execution traces: enable them, set the verbosity, choose the output location.
| Property | Type | Default | Description |
|---|---|---|---|
renmy.trace.enabled | bool | false | Default for renmy test --trace and renmy exec --trace; a flag on the command line wins |
renmy.trace.level | string | verbose | Default for renmy test --trace-level: minimal, normal, verbose, debug, system. Below verbose a trace cannot be replayed |
renmy.trace.output | string | .nimbus/traces | Directory for trace output files |
renmy.trace.max-value-length | int | 1000 | Maximum value length in traces |
Salesforce governor limits enforced locally, so violations show up before the code reaches the org.
| Property | Type | Default | Description |
|---|---|---|---|
renmy.governor.mode | string | strict | Enforcement mode: strict (fail), warn (log), off |
renmy.governor.soql-queries | int | 100 | SOQL query limit per transaction |
renmy.governor.dml-statements | int | 150 | DML statement limit per transaction |
renmy.governor.heap-size | int | 0 | Heap size limit in bytes (0 = platform default: 10 MB sync, 25 MB async) |
The simulated org environment: currency, locale, timezone, user identity and custom setting defaults.
| Property | Type | Default | Description |
|---|---|---|---|
renmy.org.currency | string | USD | Default currency for UserInfo.getDefaultCurrency() |
renmy.org.currencies | list | unset | The org's other currencies when MultiCurrency is on: CODE=RATE[:DECIMALS][:inactive], for example EUR=0.9,GBP=0.8,JPY=150:0:inactive |
renmy.org.features | list | unset | Org features, such as MultiCurrency,PersonAccounts, or none. Set, this list replaces the features in config/project-scratch-def.json; unset, the scratch definition supplies them |
renmy.org.locale | string | en_US | Default locale for UserInfo.getLocale() |
renmy.org.timezone | string | unset | Zone tests run in. Unset: the org user's zone from renmy sync -o, else this machine's zone |
renmy.mock.user-id | string | 005000000RUNNERAQ5 | Mock user ID for CreatedById / LastModifiedById |
renmy.seed.record-types | bool | true | Auto-seed RecordTypes from project metadata |
renmy.seed.org-default.<Object> | string | - | Seed custom setting org defaults (see examples below) |
renmy.default-record-type.<Object> | string | - | Default RecordType DeveloperName for inserts without explicit RecordTypeId |
renmy.seed.list-view.<Object>.<DevName> | string | - | Seed a ListView record (value is the label) |
renmy.seed.flow.<FlowApiName> | string | - | When the org last activated a record-triggered flow, RFC 3339 in UTC. Flows of one object and phase without a triggerOrder run in this order. Overrides the same flow's activatedAt in .nimbus/org/flows.json |
General project settings: default org, caching, output verbosity.
| Property | Type | Default | Description |
|---|---|---|---|
renmy.org | string | default | Default Salesforce org alias (for renmy sync) |
renmy.cache.dir | string | .nimbus/cache | Directory for the parsed-program, scan and index caches. A relative path is taken from the project root; set it outside the checkout to keep the caches across a fresh container |
renmy.verbose | bool | false | Verbose CLI output |
The browser-based Dev UI and the background daemon.
| Property | Type | Default | Description |
|---|---|---|---|
renmy.devui.port | int | (a free port) | Port the Dev UI binds on the loopback interface; --addr overrides it |
renmy.devui.open-browser | bool | true | Open the browser when renmy dev starts; --no-browser overrides it |
renmy.daemon.auto-start | bool | true | Pro: start the daemon before a test run for warm caches. false stops it; NIMBUS_SKIP_DAEMON_AUTOSTART=1 and --no-daemon win |
Run renmy config init and commit the file. From then on the test environment is configured from the repo.