Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2e tests #65

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open

E2e tests #65

wants to merge 26 commits into from

Conversation

rperez89
Copy link
Member

E2E test with automatic visual test execution using puppeteer and percy integration

keys:
- redemptions-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
# - redemptions-

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add restore_cache back again?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is some kind of problem installing websocket when you have the restore_cache, we need to investigate it a little more

package.json Outdated
"openzeppelin-solidity": "2.0.1",
"@babel/plugin-proposal-object-rest-spread": "^7.3.4",
"@babel/polyfill": "^7.2.5",
"@babel/register": "^7.0.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicated, already in devDependencies

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perfect, will remove it

# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4
- image: circleci/node:lts
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We decided to use circleci/node:8.15.1 so the restore-cache works

coverage:
docker:
# specify the version you desire here
- image: circleci/node:lts
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- image: circleci/node:lts
- image: circleci/node:8.15.1

- redemptions-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
# - redemptions-

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add this back again and use restore_node_modules
so it would be

- *restore_node_modules

@lkngtn lkngtn removed their request for review July 31, 2019 18:04
@yeqbfgxjiq
Copy link
Contributor

This is a really cool project. Are we still moving forward on this and/or what are the blockers?

@fabriziovigevani
Copy link
Member

We decided to leave it hangin for a while due to taking too much time to process and sometimes it would run out of memory.
The problematic thing is that for this kind of tests you need to deploy your dao and every time the process is ran, the wrapper is download (which can take several minutes).

@0xGabi was working on something to have the wrapper already pre-built which can help us on this matter.

@yeqbfgxjiq
Copy link
Contributor

Just came across Ghost Inspector, which is essentially a paid service to use an automated browser (probably also Puppeteer or Phantom or whatever) to test website builds. It's paid (and probably not open source) so probably not the best choice for us, but seemed kind of similar to what you're building so I thought I'd share.

On that note, would it make sense to move this e2e testing framework into the devops repo rather than having it as something specific to Redemptions?

@rperez89
Copy link
Member Author

Just came across Ghost Inspector, which is essentially a paid service to use an automated browser (probably also Puppeteer or Phantom or whatever) to test website builds. It's paid (and probably not open source) so probably not the best choice for us, but seemed kind of similar to what you're building so I thought I'd share.

On that note, would it make sense to move this e2e testing framework into the devops repo rather than having it as something specific to Redemptions?

We can take a look to that tool! this is just a PR with the coiding of that e2e test that i did, but we never merge it because is too heavy for the CircleCi basic plan

@0xGabi
Copy link
Member

0xGabi commented Sep 19, 2019

Hey since v6.3.0 the aragonCLI have a pre-build of the client. So we can probably test this feature again with the latest version and see how that affect the CI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants