Skip to content

Commit

Permalink
update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
GChanathip committed Nov 22, 2024
1 parent 5061dae commit 206326c
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions packages/patrol_cli/test/crossplatform/app_options_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ void main() {
testServerPort: 2,
);

final invocation =
options.toGradleAssembleTestInvocation(isWindows: true);
final invocation = options.toGradleAssembleTestInvocation(isWindows: true);
expect(
invocation,
equals([
Expand Down Expand Up @@ -56,8 +55,7 @@ void main() {
testServerPort: 2,
);

final invocation =
options.toGradleAssembleTestInvocation(isWindows: false);
final invocation = options.toGradleAssembleTestInvocation(isWindows: false);
expect(
invocation,
equals([
Expand Down Expand Up @@ -93,15 +91,14 @@ void main() {
testServerPort: 2,
);

final invocation =
options.toGradleAssembleTestInvocation(isWindows: true);
final invocation = options.toGradleAssembleTestInvocation(isWindows: true);
expect(
invocation,
equals([
r'.\gradlew.bat',
':app:assembleDevReleaseAndroidTest',
r'-Ptarget=C:\Users\john\app\integration_test\app_test.dart',
'-Pdart-defines=RU1BSUw9dXNlckBleGFtcGxlLmNvbQ==,UEFTU1dPUkQ9bnk0bmNhdA==,Zm9vPWJhcg==',
'-Pdart-defines=RU1BSUw9dXNlckBleGFtcGxlLmNvbQ==,UEFTU1dPUkQ9bnk0bmNhdA==,Zm9vPWJhcg==,RkxVVFRFUl9BUFBfRkxBVk9SPWRldg==',
'-Papp-server-port=1',
'-Ptest-server-port=2',
]),
Expand All @@ -123,15 +120,14 @@ void main() {
testServerPort: 2,
);

final invocation =
options.toGradleAssembleTestInvocation(isWindows: false);
final invocation = options.toGradleAssembleTestInvocation(isWindows: false);
expect(
invocation,
equals([
'./gradlew',
':app:assembleDevDebugAndroidTest',
'-Ptarget=/Users/john/app/integration_test/app_test.dart',
'-Pdart-defines=RU1BSUw9dXNlckBleGFtcGxlLmNvbQ==,UEFTU1dPUkQ9bnk0bmNhdA==,Zm9vPWJhcg==',
'-Pdart-defines=RU1BSUw9dXNlckBleGFtcGxlLmNvbQ==,UEFTU1dPUkQ9bnk0bmNhdA==,Zm9vPWJhcg==,RkxVVFRFUl9BUFBfRkxBVk9SPWRldg==',
'-Papp-server-port=1',
'-Ptest-server-port=2',
]),
Expand All @@ -143,9 +139,7 @@ void main() {
group('IOSAppOptions', () {
late IOSAppOptions options;

group(
'correctly encodes default xcodebuild invocation for simulator with dartDefineFromFile path',
() {
group('correctly encodes default xcodebuild invocation for simulator with dartDefineFromFile path', () {
const flutterOpts = FlutterAppOptions(
command: flutterCommand,
target: 'integration_test/app_test.dart',
Expand Down Expand Up @@ -226,9 +220,7 @@ void main() {
});
});

group(
'correctly encodes default xcodebuild invocation for simulator without dartDefineFromFile path',
() {
group('correctly encodes default xcodebuild invocation for simulator without dartDefineFromFile path', () {
const flutterOpts = FlutterAppOptions(
command: flutterCommand,
target: 'integration_test/app_test.dart',
Expand Down

0 comments on commit 206326c

Please sign in to comment.