Skip to content

Files

Latest commit

61b102d · Jun 10, 2020

History

History

tests

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 25, 2019
May 1, 2018
Jul 22, 2019
Mar 29, 2016
May 22, 2019
Nov 29, 2018
Apr 23, 2018
Jun 10, 2020
Apr 21, 2018
Apr 19, 2018
May 23, 2019
May 23, 2019
May 23, 2019
May 23, 2019
May 22, 2019
May 23, 2019
May 23, 2019
Sep 20, 2016

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/steem-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/steem.git \
    /usr/local/src/steem
cd /usr/local/src/steem
git checkout <branch> # e.g. 123-feature
git submodule update --init --recursive
mkdir build
cd build
cmake \
    -DCMAKE_BUILD_TYPE=Debug \
    -DBUILD_STEEM_TESTNET=ON \
    -DLOW_MEMORY_NODE=OFF \
    -DCLEAR_VOTES=ON \
    ..
make -j$(nproc) chain_test
./tests/chain_test
cd /usr/local/src/steem
doxygen
programs/build_helpers/check_reflect.py