frida-test 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundler.d.ts +2 -0
- package/dist/bundler.d.ts.map +1 -0
- package/dist/cli-frida-test-compiler.d.ts +2 -0
- package/dist/cli-frida-test-compiler.d.ts.map +1 -0
- package/dist/cli-frida-test.d.ts +2 -0
- package/dist/cli-frida-test.d.ts.map +1 -0
- package/dist/collector.d.ts +2 -0
- package/dist/collector.d.ts.map +1 -0
- package/dist/device.d.ts +16 -0
- package/dist/device.d.ts.map +1 -0
- package/dist/logger.d.ts +9 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/protocol.d.ts +38 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/reporter/console.d.ts +3 -0
- package/dist/reporter/console.d.ts.map +1 -0
- package/dist/reporter/console.js +1 -1
- package/dist/reporter/json.d.ts +3 -0
- package/dist/reporter/json.d.ts.map +1 -0
- package/dist/reporter/summary.d.ts +3 -0
- package/dist/reporter/summary.d.ts.map +1 -0
- package/dist/runner.d.ts +21 -0
- package/dist/runner.d.ts.map +1 -0
- package/dist/runner.js +1 -1
- package/package.json +13 -6
- /package/dist/{protocol/protocol.js → protocol.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundler.d.ts","sourceRoot":"","sources":["../src/bundler.ts"],"names":[],"mappings":"AAwEA,wBAAsB,WAAW,CAAC,cAAc,EAAE,MAAM,EAAE,EAAE,IAAI,GAAE,OAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CA2DlG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-frida-test-compiler.d.ts","sourceRoot":"","sources":["../src/cli-frida-test-compiler.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-frida-test.d.ts","sourceRoot":"","sources":["../src/cli-frida-test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collector.d.ts","sourceRoot":"","sources":["../src/collector.ts"],"names":[],"mappings":"AA4BA,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAIjF"}
|
package/dist/device.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Device } from "frida";
|
|
2
|
+
export type DeviceSelector = "usb" | "local" | {
|
|
3
|
+
id: string;
|
|
4
|
+
};
|
|
5
|
+
export type TargetDef = {
|
|
6
|
+
pid: number;
|
|
7
|
+
} | {
|
|
8
|
+
id: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function resolveDevice(selector?: DeviceSelector): Promise<Device>;
|
|
11
|
+
export interface Target {
|
|
12
|
+
pid: number;
|
|
13
|
+
wasSpawned: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function resolveTarget(device: Device, targetDef: TargetDef): Promise<Target>;
|
|
16
|
+
//# sourceMappingURL=device.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../src/device.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAGpC,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,OAAO,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAC9D,MAAM,MAAM,SAAS,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzD,wBAAsB,aAAa,CAAC,QAAQ,GAAE,cAAwB,GAAG,OAAO,CAAC,MAAM,CAAC,CAIvF;AAED,MAAM,WAAW,MAAM;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,wBAAsB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CA8BzF"}
|
package/dist/logger.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const logger: {
|
|
2
|
+
setVerbose: (value: boolean) => void;
|
|
3
|
+
info: (msg: string) => void;
|
|
4
|
+
log: (msg: string) => void;
|
|
5
|
+
warn: (msg: string) => void;
|
|
6
|
+
error: (msg: string) => void;
|
|
7
|
+
success: (msg: string) => void;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;IACjB,UAAU,UAAU,OAAO;IAG3B,IAAI,QAAQ,MAAM;IAGlB,GAAG,QAAQ,MAAM;IACjB,IAAI,QAAQ,MAAM;IAClB,KAAK,QAAQ,MAAM;IACnB,OAAO,QAAQ,MAAM;CACtB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type TestStatus = "passed" | "failed" | "skipped";
|
|
2
|
+
export interface TestError {
|
|
3
|
+
message: string;
|
|
4
|
+
stack?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface TestResult {
|
|
7
|
+
name: string;
|
|
8
|
+
status: TestStatus;
|
|
9
|
+
durationMs: number;
|
|
10
|
+
error?: TestError;
|
|
11
|
+
children?: TestResult[];
|
|
12
|
+
}
|
|
13
|
+
export interface TestSuiteResult {
|
|
14
|
+
name: string;
|
|
15
|
+
status: TestStatus;
|
|
16
|
+
testResult?: TestResult;
|
|
17
|
+
}
|
|
18
|
+
export type AgentMessage = {
|
|
19
|
+
type: "agent-ready";
|
|
20
|
+
} | {
|
|
21
|
+
type: "test-suite-started";
|
|
22
|
+
name: string;
|
|
23
|
+
} | {
|
|
24
|
+
type: "test-suite-finished";
|
|
25
|
+
name: string;
|
|
26
|
+
result: TestSuiteResult;
|
|
27
|
+
} | {
|
|
28
|
+
type: "run-finished";
|
|
29
|
+
};
|
|
30
|
+
export declare function isAgentMessage(value: unknown): value is AgentMessage;
|
|
31
|
+
export interface RunSummary {
|
|
32
|
+
total: number;
|
|
33
|
+
passed: number;
|
|
34
|
+
failed: number;
|
|
35
|
+
durationMs: number;
|
|
36
|
+
testSuitesResults: TestSuiteResult[];
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../src/protocol.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEzD,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED,MAAM,MAAM,YAAY,GACpB;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,GACvB;IAAE,IAAI,EAAE,oBAAoB,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC5C;IAAE,IAAI,EAAE,qBAAqB,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,GACtE;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,CAAC;AAE7B,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAIpE;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,eAAe,EAAE,CAAC;CACtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../src/reporter/console.ts"],"names":[],"mappings":"AACA,OAAO,EAAoC,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AA6BxF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,CAWjE"}
|
package/dist/reporter/console.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/reporter/json.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,wBAAsB,mBAAmB,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAG5F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"summary.d.ts","sourceRoot":"","sources":["../../src/reporter/summary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAcjD,wBAAgB,YAAY,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CA+BzD"}
|
package/dist/runner.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Device } from "frida";
|
|
2
|
+
import type { Target } from "./device.js";
|
|
3
|
+
import type { RunSummary, TestSuiteResult } from "./protocol.js";
|
|
4
|
+
export declare class TestRunner {
|
|
5
|
+
private readonly device;
|
|
6
|
+
private readonly target;
|
|
7
|
+
private readonly agentBundle;
|
|
8
|
+
private readonly verbose;
|
|
9
|
+
private session?;
|
|
10
|
+
private script?;
|
|
11
|
+
private initialized;
|
|
12
|
+
private readonly results;
|
|
13
|
+
private fatalError?;
|
|
14
|
+
constructor(device: Device, target: Target, agentBundle: string, verbose: boolean);
|
|
15
|
+
get suiteResults(): readonly TestSuiteResult[];
|
|
16
|
+
initialize(): Promise<void>;
|
|
17
|
+
runTests(): Promise<RunSummary>;
|
|
18
|
+
dispose(): Promise<void>;
|
|
19
|
+
private onMessage;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=runner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../src/runner.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAA4B,MAAM,OAAO,CAAC;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAIjE,qBAAa,UAAU;IAQnB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,OAAO;IAV1B,OAAO,CAAC,OAAO,CAAC,CAAU;IAC1B,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;IACjD,OAAO,CAAC,UAAU,CAAC,CAAQ;IAE3B,YACmB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,OAAO,EAC/B;IAEJ,IAAI,YAAY,IAAI,SAAS,eAAe,EAAE,CAE7C;IAEK,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAyBhC;IAEK,QAAQ,IAAI,OAAO,CAAC,UAAU,CAAC,CASpC;IAEK,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAS7B;IAED,OAAO,CAAC,SAAS;CA6BlB"}
|
package/dist/runner.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "frida-test",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"homepage": "https://github.com/bernhste/frida-test/blob/main/README.md",
|
|
@@ -22,15 +22,22 @@
|
|
|
22
22
|
"frida-test": "bin/frida-test.js",
|
|
23
23
|
"frida-test-compile": "bin/frida-test-compile.js"
|
|
24
24
|
},
|
|
25
|
-
"types": "./
|
|
25
|
+
"types": "./dist/agent-runtime/globals.d.ts",
|
|
26
|
+
"typesVersions": {
|
|
27
|
+
"*": {
|
|
28
|
+
"protocol.js": [
|
|
29
|
+
"./dist/protocol.d.ts"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
},
|
|
26
33
|
"exports": {
|
|
27
34
|
".": {
|
|
28
|
-
"types": "./
|
|
29
|
-
"default": "./
|
|
35
|
+
"types": "./dist/agent-runtime/globals.d.ts",
|
|
36
|
+
"default": "./dist/agent-runtime/globals.js"
|
|
30
37
|
},
|
|
31
38
|
"./protocol.js": {
|
|
32
|
-
"types": "./
|
|
33
|
-
"default": "./
|
|
39
|
+
"types": "./dist/protocol.d.ts",
|
|
40
|
+
"default": "./dist/protocol.js"
|
|
34
41
|
}
|
|
35
42
|
},
|
|
36
43
|
"files": [
|
|
File without changes
|