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

how to run unit tests? #7

Open
caboteria opened this issue Jun 8, 2017 · 3 comments
Open

how to run unit tests? #7

caboteria opened this issue Jun 8, 2017 · 3 comments

Comments

@caboteria
Copy link

Hi, I'd like to make a small addition to activerecord5-redshift-adapter so I'm trying to get the tests to pass, but I'm having trouble just getting them to run. How do you set up a development environment?

Thanks!

@kpheasey
Copy link

You can't run redshift locally, so you have to create a separate cluster for development/test.

Redshift is based on PostgreSQL 8.0.3, so you could potentially use that on your local machine instead. However, it's not backwards compatible, see the documentation, http://docs.aws.amazon.com/redshift/latest/dg/c_redshift-and-postgres-sql.html

@caboteria
Copy link
Author

Thanks! I'm running redshift in the AWS cloud so that's all set, but I'm having trouble simply getting the tests to run, even before they attempt to connect to Redshift. For example, test/cases/helper.rb, which is included in every test, tries to require a file called load_paths but in a directory that's two levels above the root of this project. Is it intended that I copy this project inside a copy of the RoR source and run it from there?

@kwent
Copy link

kwent commented Sep 5, 2019

Same here unit tests are really weird. I don't think they ever ran and looks pretty useless

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