test: add automated regression and mesh proxy coexistence suites

This commit is contained in:
shen
2026-11-03 20:50:02 -08:00
parent b656c1896a
commit 9e05f1ad93
17 changed files with 1952 additions and 2 deletions
@@ -7,11 +7,26 @@ import 'package:meshport_lab/features/lab_screen.dart';
void main() {
const channel = MethodChannel('meshport/system_vpn');
final binding = TestWidgetsFlutterBinding.ensureInitialized();
// Profile storage: nothing stored, saves accepted.
// Isolate native startup from bundled personal profiles and external peers.
const localProfile = '''
ipv4 = '10.79.0.10/24'
listeners = []
stun_servers = []
stun_servers_v6 = []
[network_identity]
network_name = 'ui-local-draft'
network_secret = 'test-only'
[flags]
no_tun = true
use_smoltcp = true
disable_p2p = true
[runtime]
mode = 'application'
''';
setUp(
() => binding.defaultBinaryMessenger.setMockMethodCallHandler(
channel,
(_) async => null,
(call) async => call.method == 'load_profile' ? localProfile : null,
),
);
tearDown(