Skip to content

Commit 9e5f0c7

Browse files
committed
Update README.md: how to build (with conan) and run tests
1 parent 55e07e7 commit 9e5f0c7

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

README.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
# Classic CS Algorithms in CPP
22

3-
Unit tests are written with Boost.Test library. Run them like so:
3+
[![Build Status](https://travis-ci.org/alisianoi/algos-cpp.svg?branch=master)](https://travis-ci.org/alisianoi/algos-cpp)
44

5-
```
6-
mkdir build
7-
cd build
8-
cmake .. && make && ctest
9-
```
5+
## How to set up?
106

11-
To run a specific test unit, say binary search tests, drop the `test_` and run:
7+
First, install the [conan](https://conan.io/) package manager for your system. Then build and run the unit tests like so:
128

9+
```sh
10+
mkdir build && cd build
11+
conan install .. && cmake ..
12+
ctest
1313
```
14-
ctest -R binsearch
14+
15+
Unit tests are written with Boost.Test library. To run a specific test unit, say binary search tests, drop the `test_` and run:
16+
17+
```sh
18+
ctest --verbose -R binsearch
1519
```
1620

17-
Alternatively, run the file directly: `./tests/test_binsearch`
21+
Alternatively, run the file directly:
22+
23+
```sh
24+
./tests/test_binsearch
25+
```

0 commit comments

Comments
 (0)