Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshihitoAso committed Jul 30, 2024
1 parent f9a26f7 commit 1cbc8ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions tests/Dockerfile_unittest
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ COPY pyproject.toml /app/ibet-Prime/pyproject.toml
COPY poetry.lock /app/ibet-Prime/poetry.lock
RUN . ~/.bash_profile \
&& cd /app/ibet-Prime \
&& poetry install --no-root --all-extras \
&& rm -f /app/ibet-Prime/pyproject.toml \
&& rm -f /app/ibet-Prime/poetry.lock
&& poetry install --no-root --all-extras

FROM ubuntu:22.04 AS runner

Expand Down
6 changes: 3 additions & 3 deletions tests/qa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ cd /app/ibet-Prime

sleep 10

# test
pytest -v --cov=app/routers/ --cov=app/model/ --cov=app/utils/ --cov=batch/ --junitxml=pytest.xml --cov-report=xml --cov-report=term-missing:skip-covered --cov-branch tests/
# Test
poetry run pytest -v --cov=app/routers/ --cov=app/model/ --cov=app/utils/ --cov=batch/ --junitxml=pytest.xml --cov-report=xml --cov-report=term-missing:skip-covered --cov-branch tests/

status_code=$?

# カバレッジファイルの移動
# Move coverage files
mv coverage.xml cov/
mv pytest.xml cov/

Expand Down

0 comments on commit 1cbc8ab

Please sign in to comment.