diff --git a/src/README.md b/src/README.md new file mode 100644 index 00000000000..870bff53480 --- /dev/null +++ b/src/README.md @@ -0,0 +1,32 @@ +# Run Tribler + +Full instruction: [install requirements](https://github.com/Tribler/tribler#setting-up-your-development-environment) + +``` +python3 -m pip install -r requirements.txt + +tribler.sh +``` + +# Run Tests + +Install all necessary dependencies: +``` +python3 -m pip install -r requirements-test.txt +``` +Note: `requirements-test.txt` already contains all requirements +from` requirements.txt`. + +## + +Export to PYTHONPATH the following directories: + +* tribler-common +* tribler-core +* tribler-gui + +Execute: +``` +python3 -m pytest tribler-core +python3 -m pytest tribler-gui --guitests +``` \ No newline at end of file diff --git a/src/requirements-test.txt b/src/requirements-test.txt new file mode 100644 index 00000000000..507eef92b73 --- /dev/null +++ b/src/requirements-test.txt @@ -0,0 +1,11 @@ +-r requirements.txt + +pytest +pytest-asyncio +pytest-cov +pytest-mock +pytest-randomly +pytest-timeout +pytest-xdist + +asynctest