-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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 should unit tests be run? #784
Comments
Note: this is a bug tracker, the appropriate place to ask such questions is the mailing list. |
@taketwo It's actually not a question, but rather a request that the documentation be improved. When I run
|
I'd also note that this page has instructions which appear to be out of date: There is no |
Please read my message carefully, plural "tests" should be used. Well... with the current title it looks like a question, not a feature request. Anyways, you are welcome to propose a modification to the "advanced" page (or any other page for that matter, all the sources are in this repository) through a pull request. |
Okay,
|
I can't propose a modification myself if I don't know the answer. Thus the opening of the issue. |
So you have |
I pulled last night. |
Okay, it seems like
Check the output messages of CMake. It is likely that you have not enabled some other module on which global tests depend (and they depend on pretty much all modules, because they need to test everything). |
If you are using
|
Ahh, that was helpful. I was able to get |
Just in case, did you press |
I'm fairly sure I did, but just now I went back to try to generate it again — just in case — and it reverted the
I'm not quite sure how gtest is to be installed, since a pre-compiled install is not recommended. |
Until recently we distributed gtest with PCL, so everyone got it automatically. But now you have to install it yourself. ( |
Citing Jochen (from #722):
|
Apologies, but I'm on Mac OS X, and homebrew does not include a brew for gtest:
This was the first thing I tried, before even asking this question. I can download the sources, configure, and make, but when I try to do
Should I just manually install it by copying |
Please see #731. |
@MohawkJohn I suppose we can close this? |
using tests. Addresses PointCloudLibrary#784, with thanks to @taketwo.
@taketwo I think so, it looks solved |
I have looked all over the documentation and cannot find instructions anywhere on actually running unit tests. Are they run automatically when I do a
make
? Do I need to call some specific make target likemake gtest
?There's a section for it on the Advanced page: http://pointclouds.org/documentation/advanced/
but I can't find any place that explains this. It would make contributing much more accessible if there were instructions.
The text was updated successfully, but these errors were encountered: