-
Notifications
You must be signed in to change notification settings - Fork 28
Tests for query handler #10
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good job!
@carlosms could you help me understand, is this a set integration tests that would make Would it be possible to separate tests, that depend on external infrastructure (even local) and have them behind a flag, off by default? In my experience, from developer productivity standpoint, it's usually is very nice when the default way of running tests "just runs" quickly. Sorry if I misunderstood something! Another thing is - as development flow becomes more complex and to make the PR more self-contained, could you please also include a
No need to wary about doc completeness, applying guidelines and explaining anything in english - at this point just a series of CLI commands would be more then enough and later this minimal work will refactored and find it's appropriate place in the overall project's documentation. |
Yes, exactly.
Honestly I wouldn't go into this now, we don't even have a makefile. And so far these integration tests are the only ones we have. When we have more tests I think we could have two separate Let me know if you have something else in mind that can be done now.
Done in f07c127. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me.
Thank you for care and detailed description at #10 (comment)
👍 for awesome doc template as well
although for me, having all tests that require external dependency behind the flag is the expected default behaviour, up to @carlosms - if that is something you want to add later, sounds good.
Signed-off-by: Carlos Martín <[email protected]>
Signed-off-by: Carlos Martín <[email protected]>
Merging. Let's keep that in mind when we work on CI. |
Part of #2.
Depends on #8, the only new commit is c58000f.
The tests require a working gitbase server and bblfshd server. gitbase should be serving at least this repo (https://github.com/src-d/gitbase-playground).
This will be added to the travis conf in the future, but meanwhile it can be done manually:
docker run -d --name bblfshd --privileged -p 9432:9432 -v /var/lib/bblfshd:/var/lib/bblfshd bblfsh/bblfshd docker exec -it bblfshd bblfshctl driver install --all go run cli/gitbase/main.go server --git=repos -v