testdriverai 5.7.11 → 5.7.13
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/index.js +4 -0
- package/lib/commands.js +1 -3
- package/package.json +1 -1
- package/.github/workflows/test_interp.yml +0 -27
package/index.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const config = require("./lib/config.js");
|
|
4
|
+
|
|
4
5
|
// We need to initialize the IPC server quickly
|
|
5
6
|
require("./lib/ipc.js");
|
|
6
7
|
const { emitter, events } = require("./lib/events.js");
|
|
7
8
|
const { logger } = require("./lib/logger.js");
|
|
8
9
|
|
|
10
|
+
logger.info('Config is')
|
|
11
|
+
console.log(config)
|
|
12
|
+
|
|
9
13
|
if (process.argv[2] === "--help" || process.argv[2] === "-h") {
|
|
10
14
|
console.log("Command: testdriverai [init, run, edit] [yaml filepath]");
|
|
11
15
|
process.exit(0);
|
package/lib/commands.js
CHANGED
|
@@ -3,7 +3,6 @@ const sdk = require("./sdk");
|
|
|
3
3
|
const vm = require("vm");
|
|
4
4
|
const chalk = require("chalk");
|
|
5
5
|
const server = require("./ipc");
|
|
6
|
-
const outputs = require("./outputs");
|
|
7
6
|
const {
|
|
8
7
|
captureScreenBase64,
|
|
9
8
|
captureScreenPNG,
|
|
@@ -36,8 +35,7 @@ if (config.TD_VM) {
|
|
|
36
35
|
|
|
37
36
|
const {
|
|
38
37
|
logger,
|
|
39
|
-
prettyMarkdown
|
|
40
|
-
createMarkdownStreamLogger,
|
|
38
|
+
prettyMarkdown
|
|
41
39
|
} = require("./logger");
|
|
42
40
|
const { emitter, events } = require("./events.js");
|
|
43
41
|
|
package/package.json
CHANGED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
name: Test Interp
|
|
3
|
-
|
|
4
|
-
on:
|
|
5
|
-
push:
|
|
6
|
-
branches: ["main"]
|
|
7
|
-
pull_request:
|
|
8
|
-
workflow_dispatch:
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
run:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
steps:
|
|
14
|
-
- uses: testdriverai/action@main
|
|
15
|
-
with:
|
|
16
|
-
os: windows
|
|
17
|
-
branch: main
|
|
18
|
-
key: ${{secrets.TESTDRIVER_API_KEY}}
|
|
19
|
-
prompt: |
|
|
20
|
-
1. /run test.yaml
|
|
21
|
-
prerun: |
|
|
22
|
-
Start-Process "C:/Program Files/Google/Chrome/Application/chrome.exe" -ArgumentList "--start-maximized", "${{ env.WEBSITE_URL }}"
|
|
23
|
-
|
|
24
|
-
env:
|
|
25
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
26
|
-
WEBSITE_URL: "https://kzmgtp9k2gtuuw2iquk2.lite.vusercontent.net/"
|
|
27
|
-
TD_PASSWORD: "passW0rd!"
|