Skip to content

Commit

Permalink
fix: many test script doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
yowpark committed May 17, 2023
1 parent a00eb41 commit 744284e
Show file tree
Hide file tree
Showing 15 changed files with 56 additions and 55 deletions.
2 changes: 1 addition & 1 deletion DoguRpgSample/Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"com.dogu.gamium.engine.unity": "https://github.com/dogu-team/gamium.git?path=/engine/unity#1.0.3",
"com.dogu.gamium.engine.unity": "https://github.com/dogu-team/gamium.git?path=/engine/unity#1.0.4",
"com.unity.2d.sprite": "1.0.0",
"com.unity.ide.rider": "3.0.16",
"com.unity.ide.visualstudio": "2.0.16",
Expand Down
1 change: 1 addition & 0 deletions DoguRpgSample/ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,7 @@ PlayerSettings:
scriptingDefineSymbols:
0: UNITY_POST_PROCESSING_STACK_V2;USE_GAMIUM
1: UNITY_POST_PROCESSING_STACK_V2;USE_GAMIUM
4: USE_GAMIUM
7: UNITY_POST_PROCESSING_STACK_V2;USE_GAMIUM
13: UNITY_POST_PROCESSING_STACK_V2
14: UNITY_POST_PROCESSING_STACK_V2
Expand Down
12 changes: 6 additions & 6 deletions DragonCrashers/Assets/UI/Textures/UI_atlas.psd.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion DragonCrashers/Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"com.dogu.gamium.engine.unity": "https://github.com/dogu-team/gamium.git?path=/engine/unity#1.0.3",
"com.dogu.gamium.engine.unity": "https://github.com/dogu-team/gamium.git?path=/engine/unity#1.0.4",
"com.unity.collab-proxy": "1.17.7",
"com.unity.feature.2d": "1.0.0",
"com.unity.feature.development": "1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion DypThePenguin/Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"com.dogu.gamium.engine.unity": "https://github.com/dogu-team/gamium.git?path=/engine/unity#1.0.3",
"com.dogu.gamium.engine.unity": "https://github.com/dogu-team/gamium.git?path=/engine/unity#1.0.4",
"com.unity.cinemachine": "2.8.4",
"com.unity.collab-proxy": "1.15.17",
"com.unity.ide.rider": "3.0.14",
Expand Down
2 changes: 1 addition & 1 deletion InputSystemWarriors/Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"com.dogu.gamium.engine.unity": "https://github.com/dogu-team/gamium.git?path=/engine/unity#1.0.3",
"com.dogu.gamium.engine.unity": "https://github.com/dogu-team/gamium.git?path=/engine/unity#1.0.4",
"com.unity.2d.sprite": "1.0.0",
"com.unity.cinemachine": "2.8.9",
"com.unity.collab-proxy": "1.17.7",
Expand Down
30 changes: 4 additions & 26 deletions UnityUISamples/Assets/Unity UI Samples/Scenes/Drag And Drop.unity
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1792090938}
m_RootOrder: 0
Expand Down Expand Up @@ -241,7 +240,6 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -20}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1503577158}
m_RootOrder: 0
Expand Down Expand Up @@ -321,7 +319,6 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 657950952}
m_RootOrder: 0
Expand Down Expand Up @@ -401,7 +398,6 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1161611645}
m_RootOrder: 0
Expand Down Expand Up @@ -481,7 +477,6 @@ RectTransform:
m_LocalRotation: {x: 0.25881907, y: 0, z: 0, w: 0.9659258}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1098133972}
- {fileID: 1133370877}
Expand Down Expand Up @@ -617,7 +612,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 2d49b7c1bcd2e07499844da127be038d, type: 3}
m_Name:
m_EditorClassIdentifier:
m_SendPointerHoverToParent: 1
m_ForceModuleActive: 0
--- !u!114 &629012198
MonoBehaviour:
Expand All @@ -631,7 +625,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
m_Name:
m_EditorClassIdentifier:
m_SendPointerHoverToParent: 1
m_HorizontalAxis: Horizontal
m_VerticalAxis: Vertical
m_SubmitButton: Submit
Expand Down Expand Up @@ -664,7 +657,6 @@ Transform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 194.44109, y: 340.70532, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
Expand Down Expand Up @@ -697,7 +689,6 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 378318475}
m_RootOrder: 3
Expand Down Expand Up @@ -777,7 +768,6 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 288746055}
- {fileID: 1583289237}
Expand Down Expand Up @@ -856,7 +846,6 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1161611645}
m_RootOrder: 1
Expand Down Expand Up @@ -952,7 +941,6 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0.3826835, z: 0, w: 0.9238795}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1161611645}
m_Father: {fileID: 1182116519}
Expand Down Expand Up @@ -1029,18 +1017,17 @@ RectTransform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 945614443}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 289}
m_LocalPosition: {x: 0, y: 0, z: 21}
m_LocalScale: {x: 0.99997175, y: 0.99997175, z: 0.99997175}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1503577158}
m_Father: {fileID: 1182116519}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 435, y: 244}
m_SizeDelta: {x: 250, y: 70}
m_AnchoredPosition: {x: -363, y: 140}
m_SizeDelta: {x: 208.572, y: 52.048}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &945614445
MonoBehaviour:
Expand Down Expand Up @@ -1074,6 +1061,7 @@ Animator:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorStateOnDisable: 0
m_WriteDefaultValuesOnDisable: 0
--- !u!114 &945614447
MonoBehaviour:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -1166,7 +1154,6 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1740219187}
m_Father: {fileID: 378318475}
Expand Down Expand Up @@ -1243,7 +1230,6 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1194704063}
m_Father: {fileID: 378318475}
Expand Down Expand Up @@ -1320,7 +1306,6 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 298577737}
- {fileID: 695465770}
Expand Down Expand Up @@ -1399,7 +1384,6 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0, y: 0, z: 0}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 378318475}
- {fileID: 1998702092}
Expand Down Expand Up @@ -1503,7 +1487,6 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1133370877}
m_RootOrder: 0
Expand Down Expand Up @@ -1592,7 +1575,6 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -15}
m_LocalScale: {x: 1, y: 1, z: 0.99999994}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 281128518}
m_Father: {fileID: 945614444}
Expand Down Expand Up @@ -1670,7 +1652,6 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 657950952}
m_RootOrder: 1
Expand Down Expand Up @@ -1762,7 +1743,6 @@ RectTransform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1098133972}
m_RootOrder: 0
Expand Down Expand Up @@ -1889,7 +1869,6 @@ RectTransform:
m_LocalRotation: {x: -0.00000008940697, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 93313322}
m_Father: {fileID: 378318475}
Expand Down Expand Up @@ -1928,7 +1907,6 @@ RectTransform:
m_LocalRotation: {x: 0, y: -0.3826835, z: 0, w: 0.9238795}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 657950952}
m_Father: {fileID: 1182116519}
Expand Down
2 changes: 1 addition & 1 deletion UnityUISamples/Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"com.dogu.gamium.engine.unity": "https://github.com/dogu-team/gamium.git?path=/engine/unity#1.0.3",
"com.dogu.gamium.engine.unity": "https://github.com/dogu-team/gamium.git?path=/engine/unity#1.0.4",
"com.unity.collab-proxy": "1.17.7",
"com.unity.ide.rider": "3.0.16",
"com.unity.ide.visualstudio": "2.0.16",
Expand Down
12 changes: 6 additions & 6 deletions client/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"author": "",
"scripts": {
"build": "tsc",
"run:DoguRpgSample": "ts-node ./test/dogurpgsample-test.ts",
"run:DragonCrashers": "ts-node ./test/dragoncrashers-test.ts",
"run:DypThePenguin": "ts-node ./test/dypthepenguin-test.ts",
"run:InputSystemWarriors": "ts-node ./test/inputsystemwarriors-test.ts",
"run:UnityUISamples": "ts-node ./test/unityuisamples-test.ts",
"run:WarehouseInvasion": "ts-node ./test/warehouseinvasion-test.ts",
"run:DoguRpgSample": "tsc -b && ts-node ./test/dogurpgsample-test.ts",
"run:DragonCrashers": "tsc -b && ts-node ./test/dragoncrashers-test.ts",
"run:DypThePenguin": "tsc -b && ts-node ./test/dypthepenguin-test.ts",
"run:InputSystemWarriors": "tsc -b && ts-node ./test/inputsystemwarriors-test.ts",
"run:UnityUISamples": "tsc -b && ts-node ./test/unityuisamples-test.ts",
"run:WarehouseInvasion": "tsc -b && ts-node ./test/warehouseinvasion-test.ts",
"watch": "tsc --watch"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions client/typescript/test/dogurpgsample-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ import { test } from './functions';
await test('Quit', async () => {
await gamium.sleep(4000);
await gamium.actions().appQuit().perform();
process.exit(0);
});
})().catch((e) => {
console.error(e);
Expand Down
7 changes: 7 additions & 0 deletions client/typescript/test/dragoncrashers-test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { By, GamiumClient, MovePlayerBy, UI, Until, NodeGamiumService } from 'gamium';
import { test } from './functions';
import assert from 'assert';
import crypto from 'crypto';

(async () => {
const gamiumService = new NodeGamiumService('127.0.0.1', 50061);
Expand Down Expand Up @@ -136,6 +137,12 @@ import assert from 'assert';
await ui.click(By.path(path));
}
});

await test('Quit', async () => {
await gamium.sleep(4000);
await gamium.actions().appQuit().perform();
process.exit(0);
});
})().catch((e) => {
console.error(e);
process.exit(1);
Expand Down
7 changes: 6 additions & 1 deletion client/typescript/test/dypthepenguin-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { test } from './functions';
await gamiumService.connect();
const gamium = new GamiumClient(gamiumService);
const ui = gamium.ui();
let player: Player;
const player = await gamium.player(By.path('/Dyp[1]/Dyp[1]/Root[1]'));
const cameraLocator = By.path('/Cameras[1]/Main Camera[1]');

await test('Pick First SnowBall', async () => {
Expand Down Expand Up @@ -199,6 +199,11 @@ import { test } from './functions';
await gamium.sendKeys([KeyBy.unityKeycode('W'), KeyBy.unityKeycode('A')], { duratiomMs: 100 });
await gamium.sendKey(KeyBy.unityKeycode('LeftControl'));
});

await test('Quit', async () => {
await gamium.actions().appQuit().perform();
process.exit(0);
});
})().catch((e) => {
console.error(e);
process.exit(1);
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/test/functions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export async function test(name: string, fn: () => Promise<void> | void): Promise<void> {
console.log(name);
console.log(`[${name}]`);
await fn();
}
Loading

0 comments on commit 744284e

Please sign in to comment.