web icon indicating copy to clipboard operation
web copied to clipboard

Cypress Runner

Open ksolo opened this issue 4 years ago • 6 comments

Description

Create a runner script for locally executing cypress tests.

Extracted vars to file that can be imported to each of the cypress runner scripts (ci, local), and update MAKEFILE to run them locally.

Issue ##10027

ksolo avatar Dec 12 '21 23:12 ksolo

@nutrina which tests are failing for you?

ksolo avatar Dec 13 '21 14:12 ksolo

@ksolo right now it is not running any more. It can't connect to Chrome .... Do I need to reset something?

image

This is where Chrome got stuck: Screenshot 2021-12-13 at 16 44 05

nutrina avatar Dec 13 '21 14:12 nutrina

  • It gets stuck at github login
  • System runs out of memory cause it takes in 96GB while running on my local machine
Screenshot 2021-12-14 at 10 33 27 AM Screenshot 2021-12-14 at 10 31 46 AM

thelostone-mc avatar Dec 14 '21 05:12 thelostone-mc

I would also increase the default ETH balance, to make sure you can perform more transaction or run tests multiple times, by adding this param to the testrpc service: --defaultBalanceEther 1000000000

  testrpc:
    image: trufflesuite/ganache-cli
    ports:
      - "8545:8545"
    command: '--host 0.0.0.0 --mnemonic "${TEST_MNEMONIC}" --defaultBalanceEther 1000000000'
    deploy:
      replicas: 1
      resources:
        limits:
          memory: 1024M
        reservations:
          memory: 128M

nutrina avatar Jan 14 '22 12:01 nutrina

Other than the observations above this looks good to me.

nutrina avatar Jan 14 '22 12:01 nutrina

@nutrina Should I close this now since you have what you need in the other branch (which I believe is all merged)

ksolo avatar Feb 14 '22 21:02 ksolo