小编Joe*_* M.的帖子

如何让 gcloud.auth.docker-helper 摆脱挂入非相关 docker 构建的习惯?

当然我已经gcloud安装了 CLI。但是因为当我调用docker build与任何 gcloud 操作无关的日志序言时

$ docker build -t ...
ERROR: (gcloud.auth.docker-helper) You do not currently have an active account selected.
Please run:

  $ gcloud auth login

to obtain new credentials, or if you have already logged in with a
different account:

  $ gcloud config set account ACCOUNT

to select an already authenticated account to use.
Sending build context to Docker daemon  5.346MB
Step 1/8 : FROM node:alpine
...
Run Code Online (Sandbox Code Playgroud)

我如何禁用 gcloud.auth.docker-helper,b/c 无关,同时保持 gcloud 安装?

PS Bonus …

docker gcloud

12
推荐指数
1
解决办法
2214
查看次数

访问当前夹具的名称并在运行时进行测试

用于如下用途

test(testName, async (t) => {
  const ua = await getUA()

  await t.takeScreenshot(
    fixtureName +
      "/" +
      testName +
      "/" +
      identifyUserAgent(ua) +
      "/" +
      "scsh_1.png",
  )
...
Run Code Online (Sandbox Code Playgroud)

从 testcafe@0.21.1 开始,我的解决方法是

const fixtureName = "Index_Page_Test"

fixture(fixtureName).page(...)

...

const testName = "dom_has_critical_elements"

test(testName, async (t) => {
...
Run Code Online (Sandbox Code Playgroud)

但更愿意在 t 上提供它。我错过了什么吗?

testing automated-tests web-testing e2e-testing testcafe

5
推荐指数
2
解决办法
1161
查看次数