fix: address unimplemented/broken issues across server and desktop
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user