hive/tests
Radek Masłowski 14ee375287 Rename TIME_OFFSET_FORMAT WITH FAKETIME_FORMAT 2024-03-14 13:27:47 +01:00
..
integration Tests block_log_util ability for artifacts generation in test_artifacts_generation and verify all generated artifacts file 2024-02-27 21:20:37 +01:00
python Rename TIME_OFFSET_FORMAT WITH FAKETIME_FORMAT 2024-03-14 13:27:47 +01:00
unit Add `encrypt_decrypt_data_with_many_keys` unit test 2024-03-14 13:27:47 +01:00
.dockerignore smoketest scripts fixes (previous commit not completed) #2365 2018-04-19 19:58:14 +02:00
.gitignore Update .gitignore - prepare to working in the python environment 2023-08-11 21:48:16 +02:00
CMakeLists.txt Move python-related test code to the tests/python/ package 2024-02-27 21:20:26 +01:00
README.md Remove CLEAR_VOTES option from CI scripts 2021-04-19 16:05:54 +00:00

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