write REAMDE or docker for test env #263

Closed
opened 2022-01-21 09:31:14 +00:00 by pavel.baykov · 4 comments
pavel.baykov commented 2022-01-21 09:31:14 +00:00 (Migrated from gitlab.com)

write installation README or docker
test on separate server from scratch and run all tests

write installation README or docker test on separate server from scratch and run all tests
pavel.baykov commented 2022-01-21 09:31:14 +00:00 (Migrated from gitlab.com)

assigned to @pavel.baykov

assigned to @pavel.baykov
serkixenos commented 2022-01-31 04:07:23 +00:00 (Migrated from gitlab.com)

Not completed, instructions not precise enough. We need step by step instructions.

Not completed, instructions not precise enough. We need step by step instructions.
pavel.baykov commented 2022-03-17 07:24:56 +00:00 (Migrated from gitlab.com)

End to end test environment:
Installation:

sudo apt install python3
sudo apt install python3-pip
pip3 install pytest
pip3 install pexpect
pip3 install pytest-dependency
pip3 install pytest-order

Test execution:
Docker service should be installed and running, installation steps completed

Test execution starts with initialization of the test enviroment, it's possible to initialize it only once, and next runnning tests without it, all end to end test commands should be run from root directory: peerplays-utils/peerplays-qa-environment

To initialize test environment without test execution:

pytest -s -v --order-dependencies --rundockers=yes --initdockers=yes --shutdowndockers=no --skipall=yes

To run single test without initialization:

pytest -s -v --order-dependencies --rundockers=no --initdockers=no --shutdowndockers=no ./end_to_end_tests/test_Create_Son_With_Btc_Address.py

To run multiple tests without initialization:

pytest -s -v --order-dependencies --rundockers=no --initdockers=no --shutdowndockers=no ./end_to_end_tests/test_Verify_Hive_Deposit.py ./end_to_end_tests/test_Verify_Hive_Withdrawal.py

To run all tests without initialization:

pytest -s -v --order-dependencies --rundockers=no --initdockers=no --shutdowndockers=no

To run all tests with initiliazation and shutdown test environment at the end of the execution:

pytest -s -v --order-dependencies

After execution test summary results will be provided, each test will have either pass, fail or skip result. Skip is the result when test depends on another test which was not executed or failed.

End to end test environment: Installation: ``` sudo apt install python3 ``` ``` sudo apt install python3-pip ``` ``` pip3 install pytest ``` ``` pip3 install pexpect ``` ``` pip3 install pytest-dependency ``` ``` pip3 install pytest-order ``` Test execution: Docker service should be installed and running, installation steps completed Test execution starts with initialization of the test enviroment, it's possible to initialize it only once, and next runnning tests without it, all end to end test commands should be run from root directory: peerplays-utils/peerplays-qa-environment To initialize test environment without test execution: ``` pytest -s -v --order-dependencies --rundockers=yes --initdockers=yes --shutdowndockers=no --skipall=yes ``` To run single test without initialization: ``` pytest -s -v --order-dependencies --rundockers=no --initdockers=no --shutdowndockers=no ./end_to_end_tests/test_Create_Son_With_Btc_Address.py ``` To run multiple tests without initialization: ``` pytest -s -v --order-dependencies --rundockers=no --initdockers=no --shutdowndockers=no ./end_to_end_tests/test_Verify_Hive_Deposit.py ./end_to_end_tests/test_Verify_Hive_Withdrawal.py ``` To run all tests without initialization: ``` pytest -s -v --order-dependencies --rundockers=no --initdockers=no --shutdowndockers=no ``` To run all tests with initiliazation and shutdown test environment at the end of the execution: ``` pytest -s -v --order-dependencies ``` After execution test summary results will be provided, each test will have either pass, fail or skip result. Skip is the result when test depends on another test which was not executed or failed.
pavel.baykov commented 2022-03-17 07:27:59 +00:00 (Migrated from gitlab.com)

added 2h of time spent

added 2h of time spent
serkixenos (Migrated from gitlab.com) closed this issue 2022-03-21 15:25:44 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#263
No description provided.