我正在尝试使用云构建来部署我的cypress测试,然而,在云构建中我一直收到以下错误。
Cloud Run error: Container failed to start. Failed to start and then listen on the port defined by the PORT environment variable
我不确定我做错了什么。
这是我的docker文件
FROM cypress/browsers:node13.8.0-chrome81-ff75
WORKDIR /root
COPY package*.json ./
RUN npm install
我正在努力添加第二个module.export柏树/plugin/index.js
我当前的柏树/plugin/index.js文件如下所示
/// <reference types="cypress" />
// ***********************************************************
// This example plugins/index.js can be used to load plugins
//
// You can change the location of this file or turn of
当我在Cypress中运行以下Google测试时,我得到以下401错误消息:“unauthorized_client”:"unauthorized_client","error_description":“未经授权”。用户成龙( Jackie )能够通过谷歌( Google )手动登录,但出于某种原因,这个测试在Cypress上失败了。在看完它之后,我和我的队友认为这可能与当我们打开它时Cypress给我们的端口有关。有人知道如何覆盖Cypress提供的端口,而不是给Cypress我们想要的端口吗?除非有人知道问题可能是什么,否则我们会采取的下一条路线?谢谢。
我遇到一个问题,在柏树中返回一个错误:You must set the CYPRESS_MAILOSAUR_API_KEY environment variable to use the Mailosaur plugin.
我尝试将MAILOSAUR_API_KEY放到cypress.json文件和cypress.env.json中。我认为CYPRESS_MAILOSAUR_API_KEY应该用于系统环境变量,在这种情况下需要吗?还是我在cypress.json和env.json中的变量没有被读取?(我的cypress.env.json文件与cypress.json文件一起位于根级文件夹中)
我们在Team City中运行Cypress测试,测试的输出非常冗长。当我直接在代理机器上运行测试时,我没有看到如此详细的日志记录,所以这可能是由于Team City的原因。
小样本(有数千个这样的例子):
cypress:https-proxy Making intercepted connection to 60378
cypress:server:server Got UPGRADE request from /__socket.io/?EIO=3&transport=websocket
cypress:server:timers queuing timer id 5 after
当我尝试使用cypress open或cypress run时,会得到以下错误:
✖ Verifying Cypress can run /*/*/.cache/Cypress/3.1.5/Cypress
→ Cypress Version: 3.1.5
Cypress failed to start.
This is usually caused by a missing library or dependency.
The error below should indicate which dependency is missing.
https://on.cypress.