README: Mention how to run tests#4139
Conversation
ba59066 to
6c1dfca
Compare
|
Interesting, that's actually not how I run the tests. I run the tests just by invoking the runner itself: in the build output directory. Instructing people to do it this way gives them some amount of control over how the tests get run. For example, we could also tell them that they can run a specific test with: or use a prefix to match only some of the tests, like: Then again, this may be unnecessarily detailed for people. Some people are just running the tests to make sure that their compiled binary works, not because they're hacking on the code. What do you think? |
6c1dfca to
e20ae37
Compare
|
Yes, I'm not sure, there are other tests besides libgit2_clar though? Could always add another paragraph saying something like, "you can also run the tests directly with ./libgit2_...." ? |
No - My suggestion is that giving people more insight into the test runner is a valuable thing... I also think that it's more memorable (than the magic variable needed to emit test output). I wonder if there's a way to make |
|
Ah right, I don't really have a preference here, though I agree that having to specify |
|
After working with the tests a bit more I think it's probably useful for people to know how to run the tool directly, since that allows you to specify individual tests, which, if you're working on the test set, saves time. So I'll modify this to include how to do that. |
e20ae37 to
5c06111
Compare
|
I've reworked this to express both ways of running tests, as far as outputting failure by default goes, I don't really know cmake at all but one simple method seems to be to add a custom target, e.g. then you run the tests with |
|
Cool, thanks, I think this will help people get started! 😀 |
No description provided.