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

Make tests easier to run #276

Closed
neatonk opened this issue Sep 16, 2022 · 9 comments
Closed

Make tests easier to run #276

neatonk opened this issue Sep 16, 2022 · 9 comments

Comments

@neatonk
Copy link
Member

neatonk commented Sep 16, 2022

I ran into a few hiccups while trying to run the tests in this repository and wanted to document them here with suggested improvements.

  • A section on tests should be added to the README with setup instructions and caveats.
  • Explain .env file setup. I used RPC_HHTP_HOST=https://rpc.ankr.com/eth and IPFS_HTTPS_GATEWAY=https://cloudflare-ipfs.com/ipfs/ (no api key needed).
  • Add empty data directory to repo and hide it's contents or ask user to create it. It wasn't clear until I looked at the .gitignore file that the data directory should be a temp directory in this repo. Also not sure if it needs to be cleaned up between test runs or if that is handled.
  • Tests seem a bit brittle wrt ethereum network state. One tests for soundxyz is failing for me due soundxyz metadata changes.
@TimDaub
Copy link
Collaborator

TimDaub commented Sep 16, 2022

  • Tests seem a bit brittle wrt ethereum network state. One tests for soundxyz is failing for me due soundxyz metadata changes.

should have been solved in 94eff65

@TimDaub
Copy link
Collaborator

TimDaub commented Sep 16, 2022

  • Tests seem a bit brittle wrt ethereum network state. One tests for soundxyz is failing for me due soundxyz metadata changes.

just found another one:

@il3ven
Copy link
Contributor

il3ven commented Sep 17, 2022

It wasn't clear until I looked at the .gitignore file that the data directory should be a temp directory in this repo

This must be something specific to your system. I don't have a data directory and the tests do pass. Similarly, our CI also doesn't create a data directory. However it does add the DATA_DIR environment variable.

@neatonk
Copy link
Member Author

neatonk commented Sep 19, 2022

This must be something specific to your system. I don't have a data directory and the tests do pass. Similarly, our CI also doesn't create a data directory. However it does add the DATA_DIR environment variable.

Thanks for that. It looks like the DATA var is probably not used when running tests. In which, case it should be removed from the example env or commented to explain that it is not used.

@neatonk
Copy link
Member Author

neatonk commented Sep 19, 2022

I can put together a PR with these changes at a later date. Just wanted to document and clarify this stuff before I get too familiar with the code.

@TimDaub
Copy link
Collaborator

TimDaub commented Sep 19, 2022

This must be something specific to your system. I don't have a data directory and the tests do pass. Similarly, our CI also doesn't create a data directory. However it does add the DATA_DIR environment variable.

Thanks for that. It looks like the DATA var is probably not used when running tests. In which, case it should be removed from the example env or commented to explain that it is not used.

I made some edits to .env-copy today and I now recommend to soft link the .env file from core

@TimDaub
Copy link
Collaborator

TimDaub commented Sep 19, 2022

@TimDaub
Copy link
Collaborator

TimDaub commented Sep 19, 2022

IMO we should close this issue as all problems should be addresse now, or what's left?

@neatonk
Copy link
Member Author

neatonk commented Sep 20, 2022

Agreed

IMO we should close this issue as all problems should be addresse now, or what's left?

@neatonk neatonk closed this as completed Sep 20, 2022
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

No branches or pull requests

3 participants