From 8fd9a224f3e1fb41dfab0d3c9b30e417f924bcb4 Mon Sep 17 00:00:00 2001 From: c-bata Date: Mon, 26 Oct 2020 15:48:27 +0900 Subject: [PATCH] How to run tests --- DEVELOPMENT.md | 13 ++++++++++++- setup.py | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 46246696..fa128ee5 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -37,7 +37,7 @@ $ optuna-dashboard sqlite:///db.sqlite3 ``` -## Running formatters +## Running tests and formatters ### Auto-formatting TypeScript files @@ -52,6 +52,17 @@ $ pip install .[lint] $ black . ``` +### Running tests + +``` +$ python setup.py test +... + +Ran 4 tests in 0.004s + +OK +``` + ## Release process diff --git a/setup.py b/setup.py index 0778e242..fc298eec 100644 --- a/setup.py +++ b/setup.py @@ -38,6 +38,7 @@ setup( "release": ["wheel", "twine"], }, package_data={"optuna_dashboard": ["public/*"]}, + test_suite='tests', entry_points={ "console_scripts": [ "optuna-dashboard = optuna_dashboard.cli:main",