AWS Amplify : Old failing tests running in cypress, even though they are deleted locally

0

I enabled cypress tests for my Amplify pipeline. Some of the tests are failing during deployment. My changes to the tests (even completely deleting the failing test specs) is working locally - I see successful tests pass. However when I push the changes, I see failures in Amplify console. Is there a possibility that caching of some sort is going on here? Or if I need to compile the tests each time for the changes to take effect?

I also see this warning in my log file for Cypress tests :

2023-02-09T05:54:38.899Z [WARNING]: ! Test config file not found for the configFilePath glob provided in your build spec: **/mochawesome.json

This is the structure of my cypress folder

fixtures
downloads
plugins
reports
support
tsconfig.json
webpack.config.js
report
e2e
integration

And this is the test section of my amplify.yml

test:
  artifacts:
    baseDirectory: cypress
    configFilePath: "**/mochawesome.json"
    files:
      - "**/*.png"
      - "**/*.mp4"
  phases:
    preTest:
      commands:
        - npm ci
        - npm install -g pm2
        - npm install -g wait-on
        - npm install mocha mochawesome mochawesome-merge mochawesome-report-generator
        - npx pm2 start npm -- start
        - 'npx wait-on --timeout 60 http://localhost:3000'
    test:
      commands:
        - npm run build
        - "npx serve -s -l 3000 build & sleep 30; yarn e2e"
        - 'npx cypress run --reporter mochawesome --reporter-options "reportDir=cypress/report/mochawesome-report,overwrite=false,html=false,json=true,timestamp=mmddyyyy_HHMMss"'
    postTest:
      commands:
        - npx mochawesome-merge cypress/report/mochawesome-report/mochawesome*.json > cypress/report/mochawesome.json
        - npx pm2 kill
Raj
질문됨 일 년 전65회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠