#1513 all: run pytest with -vv in package build
Merged 3 years ago by praiskup. Opened 3 years ago by praiskup.

file modified
+1 -1
@@ -172,7 +172,7 @@

  

  

  %check

- ./run_tests.sh

+ ./run_tests.sh -vv

  

  %pre

  getent group copr >/dev/null || groupadd -r copr

file modified
+1 -1
@@ -106,7 +106,7 @@

  

  

  %check

- %{__python} -m pytest tests

+ %{__python} -m pytest -vv tests

  

  

  %files

file modified
+1 -1
@@ -91,7 +91,7 @@

  

  

  %check

- ./run_tests.sh

+ ./run_tests.sh -vv

  

  %post

  %systemd_post copr-dist-git.service

file modified
+2 -2
@@ -44,7 +44,7 @@

  

  Name:       copr-frontend

  Version:    1.169

- Release:    1%{?dist}

+ Release:    0.1%{?dist}

  Summary:    Frontend for Copr

  

  License:    GPLv2+
@@ -289,7 +289,7 @@

  

  %check

  %if %{with check}

- ./run_tests.sh

+ ./run_tests.sh -vv

  %endif

  

  %pre

file modified
+1 -2
@@ -120,8 +120,7 @@

  cp -a docs/_build/html %{buildroot}%{_pkgdocdir}/

  

  %check

- 

- PYTHONPATH=./src:$PYTHONPATH %{__python3} -B -m pytest  --cov-report term-missing --cov ./src tests

+ PYTHONPATH=./src:$PYTHONPATH %{__python3} -B -m pytest -vv --cov-report term-missing --cov ./src tests

  

  

  %pre

@@ -70,7 +70,7 @@

  

  

  %check

- ./runtests.sh

+ ./runtests.sh -vv

  

  

  %files -n python3-%name

file modified
+2 -2
@@ -202,11 +202,11 @@

  

  %check

  %if %{with python3}

- %{__python3} -m pytest copr/test

+ %{__python3} -m pytest -vv copr/test

  %endif

  

  %if %{with python2}

- %{__python2} -m pytest copr/test

+ %{__python2} -m pytest -vv copr/test

  %endif

  

  

file modified
+1 -1
@@ -170,7 +170,7 @@

  

  

  %check

- PYTHON=%{python} ./run_tests.sh --no-coverage

+ PYTHON=%{python} ./run_tests.sh -vv --no-coverage

  

  

  %build

It is sometimes hard to decode from the build-log what was the unittest
failure. Let's use double-verbose mode which prints e.g. much more
verbose assertion diffs, when some assert fails.

Also it's nice to see the verbose progress in live logs ... if some of the tasks
hangs or takes too long for example, it is more obvious which one.

Also it's nice to see the verbose progress in live logs ... if some of the tasks
hangs or takes too long for example, it is more obvious which one.

+1, I never run them locally without -v.

Pull-Request has been merged by praiskup

3 years ago