我正在尝试使用cypress-testrail-reporter将我的 cypress 测试结果发布到 testrail 中将我的 cypress 测试结果发布到 testrail我设置了我的 cypress.json 如下
\n{\n "baseUrl": "https://myAppUrl.xyz",\n "viewportWidth": 1920,\n "viewportHeight": 1080,\n "video": false,\n "reporter": "cypress-testrail-reporter",\n "reporterOptions": {\n "host": "https://mycompnay.com/testrail",\n "username": "user@mycompany.com",\n "password": "testrailsPassword",\n "projectId": 2,\n "suiteId": 18120\n }\n}\nRun Code Online (Sandbox Code Playgroud)\n和package.json如下
\n{\n "name": "vivifytestrailreporter",\n "version": "1.0.0",\n "description": "https://github.com/Vivify-Ideas/cypress-testrail-reporter#readme",\n "main": "index.js",\n "scripts": {\n "test": "echo \\"Error: no test specified\\" && exit 1"\n },\n "author": "",\n "license": "ISC",\n "dependencies": {\n "cypress": "^7.2.0"\n },\n "devDependencies": {\n "cypress-testrail-reporter": "^1.2.8"\n }\n}\nRun Code Online (Sandbox Code Playgroud)\n创建了一个简单的测试,可以在 npx cypress 打开时正常运行,并且其上有案例 …