10 Comments

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
author

Thanks for pointing that out.

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

Expand full comment

em, that command runs both test cases.

Expand full comment
author

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

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
author

Ah. Now I get the confusion.

No, that's the actual command :-)

Expand full comment
Apr 1, 2023Liked by Šimon Tóth

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

Yes, silly me :)

Expand full comment

Curious why did you pick Bazel build here?

Expand full comment
author

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

Expand full comment