10 Comments
User's avatar
bytebunny's avatar

If you are new to Bazel and it was not clear how to run the test cases, it is `bazel test //functions:functions_test`. More details here https://bazel.build/start/cpp#introduction

Expand full comment
Šimon Tóth's avatar

Thanks for pointing that out.

Just for feedback purposes, did you find it useful to run the specific test case?

Expand full comment
bytebunny's avatar

em, that command runs both test cases.

Expand full comment
Šimon Tóth's avatar

I should have written "specific test target".

I have deliberately listed the bulk test commands, since I thought that they will be more approachable at this point. What I'm asking is whether you find running a specific test useful (i.e. is it something I should talk about?).

Expand full comment
bytebunny's avatar

No, I just wanted to run the tests and did not know how to.You wrote "bazel test //...", which I understood as either "bazel test //helloworld", or "bazel test //functions". But both were wrong, so I had to read the Bazel docs to understand how to run the tests.

Expand full comment
Šimon Tóth's avatar

Ah. Now I get the confusion.

No, that's the actual command :-)

Expand full comment
bytebunny's avatar

While we're at it. Great setup you created! It was very easy to get up and running. I saw you published the 2nd lesson. Looking forward to working on it!

Expand full comment
bytebunny's avatar

Yes, silly me :)

Expand full comment
Shuyan's avatar

Curious why did you pick Bazel build here?

Expand full comment
Šimon Tóth's avatar

Mainly because Bazel is simple enough that it doesn't require much explanation.

Expand full comment