Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(core): add feature gate to contract tests

Steven Enamakela83d5cbddec2
diff --git a/crates/openhuman-core/src/core/all_schema_contract_tests.rs b/crates/openhuman-core/src/core/all_schema_contract_tests.rs
index 8d444189aa..72c8c51ca6 100644
--- a/crates/openhuman-core/src/core/all_schema_contract_tests.rs
+++ b/crates/openhuman-core/src/core/all_schema_contract_tests.rs
@@ -180,12 +180,14 @@ fn representative_parameter_contracts() -> (Vec<RegisteredController>, Vec<Contr
}
#[test]
+#[cfg(any(feature = "modules", feature = "mcp"))]
fn voice_and_representative_handler_examples_match_real_pure_parsers() {
let (controllers, contracts) = representative_parameter_contracts();
verify_parameter_contracts(&controllers, &contracts).unwrap();
}
#[test]
+#[cfg(any(feature = "modules", feature = "mcp"))]
fn every_covered_required_declaration_rejects_removal_and_optional_mutants() {
let (controllers, contracts) = representative_parameter_contracts();
verify_parameter_contracts(&controllers, &contracts).unwrap();
@@ -231,6 +233,7 @@ fn every_covered_required_declaration_rejects_removal_and_optional_mutants() {
}
#[test]
+#[cfg(any(feature = "modules", feature = "mcp"))]
fn real_contract_inventory_rejects_a_missing_and_an_extra_row() {
let (controllers, mut contracts) = representative_parameter_contracts();
let removed = contracts