fix: address unimplemented/broken issues across server and desktop

This commit is contained in:
2026-08-01 18:58:12 +08:00
parent 93ee801f27
commit 7e4236e2f3
7 changed files with 239 additions and 24 deletions

View File

@@ -2,18 +2,22 @@
//
// 运行前需先启动 Rust 服务端cd .. && cargo run
// 运行flutter test test/e2e_ws_test.dart
import 'dart:io';
import 'package:flutter_test/flutter_test.dart';
import 'package:xterm/xterm.dart';
import '../lib/src/rtty_client.dart';
import 'package:rtty_desktop/src/rtty_client.dart';
import 'support.dart';
void main() {
TestWidgetsFlutterBinding.ensureInitialized();
test('RttyClient connects to Rust server and renders command output',
() async {
if (!await isServerUp('127.0.0.1', 8080)) {
markTestSkipped('Rtty server not running');
return;
}
final terminal = Terminal();
final client = RttyClient(terminal);