datahaven/test/moonwall.config.json
undercover-cactus 077cc9ed29
feat: injecting contracts feature for e2e testing (#295)
In this PR, we introduce a way to save Ethereum state into a file. This
saved state can then be injected into Ethereum to speed up e2e initial
test setup.

This is a rewrite of the now closed PR
https://github.com/datahaven-xyz/datahaven/pull/90 .

It uses a an external tool written in rust to save state from the
Ethereum running container : https://github.com/undercover-cactus/Chaos

---------

Co-authored-by: Gonza Montiel <gonzamontiel@users.noreply.github.com>
Co-authored-by: Steve Degosserie <723552+stiiifff@users.noreply.github.com>
2025-11-20 12:42:12 +01:00

41 lines
1.2 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/Moonsong-Labs/moonwall/main/packages/types/config_schema.json",
"label": "DataHaven Tests 🔷",
"defaultTestTimeout": 180000,
"scriptsDir": "scripts/",
"environments": [
{
"name": "dev_datahaven",
"testFileDir": ["datahaven/suites/dev"],
"include": ["**/*test*.ts"],
"timeout": 180000,
"multiThreads": 4,
"contracts": "datahaven/contracts/",
"runScripts": ["compile-contracts.sh compile"],
"envVars": ["DEBUG_COLORS=1"],
"reporters": ["basic", "html", "json"],
"reportFile": {
"json": "./tmp/testResults.json"
},
"foundation": {
"type": "dev",
"launchSpec": [
{
"name": "datahaven",
"binPath": "../operator/target/release/datahaven-node",
"newRpcBehaviour": true,
"options": [
"--dev",
"--no-telemetry",
"--unsafe-force-node-key-generation",
"--reserved-only",
"--no-grandpa",
"--no-prometheus",
"--sealing=manual"
]
}
]
}
}
]
}