From dc273ae4acb1be6aa8495b1b85f12fcfc787d104 Mon Sep 17 00:00:00 2001 From: "jielin.xu" Date: Wed, 25 Sep 2019 16:09:18 +0800 Subject: [PATCH] Update CONTRIBUTING.md Former-commit-id: 1d9bda6fbbe40be5562dd6f6d03910c5ab5fc5f6 --- cpp/CONTRIBUTING.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cpp/CONTRIBUTING.md b/cpp/CONTRIBUTING.md index 0d9e30f678..8711d87050 100644 --- a/cpp/CONTRIBUTING.md +++ b/cpp/CONTRIBUTING.md @@ -43,11 +43,22 @@ Before sending your pull requests for review, make sure your changes are consist ## Coding Style +The coding style used in Milvus generally follow [Google C++ Style Guide](https://google.github.io/styleguide/cppguide.html). +And we made the following changes based on the guide: + +- 4 spaces for indentation +- Adopt .cpp file extension instead of .cc extension +- 120-character line length +- The file name starts with the upper case ## Run unit test +We use Google Test framework for test running. +To run unit test for Milvus under C++, please use the following command: + ```shell +# Run unit test for Milvus $ ./build.sh -u ```