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

Add separate integration tests #464

Closed
postmodern opened this issue Sep 13, 2021 · 1 comment
Closed

Add separate integration tests #464

postmodern opened this issue Sep 13, 2021 · 1 comment
Assignees

Comments

@postmodern
Copy link
Owner

Add proper integration tests which run chruby against /opt/rubies or a given rubies/ directory. The test script should directly query the ruby for it's settings (RUBY_VERSION, RUBY_ENGINE, etc), attempt to switch to each ruby in the rubies/ directory, validate that the appropriate ENV variables have been set correctly, explicitly error on empty-values (ex: if the ruby returns an empty string for GEM_ROOT or RUBY_VERSION, something has broken).

All unit tests shall be moved into test/unit/, and all integration tests shall reside in test/integration/. Integration tests should probably not run as part of the CI just yet, and are more intended for local testing.

@postmodern
Copy link
Owner Author

Implemented in a02854f and f8f29a5.

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

No branches or pull requests

1 participant