mirror of https://gitlab.syncad.com/hive/hive.git
14ee375287 | ||
---|---|---|
.. | ||
integration | ||
python | ||
unit | ||
.dockerignore | ||
.gitignore | ||
CMakeLists.txt | ||
README.md |
README.md
Automated Testing Documentation
To Create Test Environment Container
From the root of the repository:
docker build --rm=false \
-t steemitinc/ci-test-environment:latest \
-f tests/scripts/Dockerfile.testenv .
To Run The Tests
(Also in the root of the repository.)
docker build --rm=false \
-t steemitinc/hive-test \
-f Dockerfile.test .
To Troubleshoot Failing Tests
docker run -ti \
steemitinc/ci-test-environment:latest \
/bin/bash
Then, inside the container:
(These steps are taken from /Dockerfile.test
in the
repository root.)
git clone https://github.com/steemit/hive.git \
/usr/local/src/hive
cd /usr/local/src/hive
git checkout <branch> # e.g. 123-feature
git submodule update --init --recursive
mkdir build
cd build
cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DBUILD_HIVE_TESTNET=ON \
..
make -j$(nproc) chain_test
./tests/chain_test
cd /usr/local/src/hive
doxygen
programs/build_helpers/check_reflect.py