KyosukeIchikawa commited on
Commit
71a3f07
·
1 Parent(s): afb4f81

Enhance test output: add verbosity and duration reporting to pytest commands in Makefile and configuration files

Browse files
Files changed (3) hide show
  1. Makefile +3 -3
  2. pyproject.toml +1 -1
  3. pytest.ini +1 -1
Makefile CHANGED
@@ -165,17 +165,17 @@ pre-commit-run-ci: setup-lint
165
  # Run all tests
166
  test: venv
167
  @echo "Running tests..."
168
- $(VENV_PYTHON) -m pytest tests/
169
 
170
  # Run unit tests only
171
  test-unit: venv
172
  @echo "Running unit tests..."
173
- $(VENV_PYTHON) -m pytest tests/unit/
174
 
175
  # Run E2E tests only
176
  test-e2e: venv
177
  @echo "Running E2E tests..."
178
- E2E_TEST_MODE=true $(VENV_PYTHON) -m pytest tests/e2e/
179
 
180
  # Run tests for staged files only
181
  test-staged: venv
 
165
  # Run all tests
166
  test: venv
167
  @echo "Running tests..."
168
+ $(VENV_PYTHON) -m pytest tests/ --durations=10 -v
169
 
170
  # Run unit tests only
171
  test-unit: venv
172
  @echo "Running unit tests..."
173
+ $(VENV_PYTHON) -m pytest tests/unit/ --durations=10 -v
174
 
175
  # Run E2E tests only
176
  test-e2e: venv
177
  @echo "Running E2E tests..."
178
+ E2E_TEST_MODE=true $(VENV_PYTHON) -m pytest tests/e2e/ --durations=10
179
 
180
  # Run tests for staged files only
181
  test-staged: venv
pyproject.toml CHANGED
@@ -56,7 +56,7 @@ ignore_missing_imports = true
56
  follow_imports = "skip"
57
 
58
  [tool.pytest.ini_options]
59
- addopts = "--timeout=90 -v --tb=native --durations=10"
60
  markers = [
61
  "slow: marks tests as slow running",
62
  "requires_voicevox: marks tests that require VOICEVOX Core",
 
56
  follow_imports = "skip"
57
 
58
  [tool.pytest.ini_options]
59
+ addopts = "--timeout=90 -v --tb=native --durations=10 -v"
60
  markers = [
61
  "slow: marks tests as slow running",
62
  "requires_voicevox: marks tests that require VOICEVOX Core",
pytest.ini CHANGED
@@ -12,4 +12,4 @@ bdd_features_base_dir = tests/e2e/features
12
  bdd_strict_gherkin = false
13
 
14
  # Add pytest-bdd to installed plugins
15
- addopts = --gherkin-terminal-reporter
 
12
  bdd_strict_gherkin = false
13
 
14
  # Add pytest-bdd to installed plugins
15
+ addopts = --gherkin-terminal-reporter --durations=10 -v