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

RPC endpoints: compatibility tests are not running #41

Closed
liamsi opened this issue Sep 23, 2019 · 5 comments
Closed

RPC endpoints: compatibility tests are not running #41

liamsi opened this issue Sep 23, 2019 · 5 comments

Comments

@liamsi
Copy link
Member

liamsi commented Sep 23, 2019

I was looking into the RPC endpoints and noticed that the integration tests are not running anymore.

I think that is because the tests directory got moved out of the module and is now a separate directory. Moving them back into a module (e.g. the tendermint directory fixes this). Alternatively, tests could be a separate crate referred to by the root Cargo.toml.

(related #38 #4)

@tarcieri
Copy link
Contributor

@liamsi the RPC integration tests that require a live gaiad instance are all marked as #[ignore] as a live gaiad instance may or may not be available. See notes here:

https://github.com/interchainio/tendermint-rs/blob/master/tests/integration.rs

tl;dr:

cargo test -- --ignored

@liamsi
Copy link
Member Author

liamsi commented Sep 23, 2019

Yes, noticed that too. But also the non-ignored fixture-based integration tests do not run; e.g. https://github.com/interchainio/tendermint-rs/blob/06eab13d173e51c20464104e8c6cbe6b4cffe2f9/tests/rpc.rs#L161-L166

Or is this also on purpose? I'm probably lacking some context here. Thanks for the quick reply!

@tarcieri
Copy link
Contributor

Aah, yes you're right, tests should get moved to tendermint/tests

@liamsi
Copy link
Member Author

liamsi commented Sep 23, 2019

OK, thanks! Will include that in the PR and will push in a sec.

We could instead also make tests a separate crate. Similarly to what prost does here:
https://github.com/danburkert/prost/tree/master/tests
and
https://github.com/danburkert/prost/blob/9551f2852e414df72339634087c46ce5a08e85b2/Cargo.toml#L26
But we can discuss this separately or do so when tests grows larger.

@liamsi
Copy link
Member Author

liamsi commented Nov 6, 2019

Resolved via #42

@liamsi liamsi closed this as completed Nov 6, 2019
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

2 participants