Skip to content

Commit

Permalink
scripts: add script to run API unit tests
Browse files Browse the repository at this point in the history
Add `scripts/run_unit_tests.sh` for running API
unit tests.

Signed-off-by: Jeny Sadadia <[email protected]>
  • Loading branch information
Jeny Sadadia authored and JenySadadia committed Feb 26, 2024
1 parent 14719b9 commit 77ad0c5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/run_unit_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
#
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Copyright (C) 2024 Collabora Limited
# Author: Jeny Sadadia <[email protected]>

# Script for running API unit tests

docker-compose -f test-docker-compose.yaml build --no-cache
docker-compose -f test-docker-compose.yaml up -d api db redis storage ssh test
docker-compose -f test-docker-compose.yaml exec -T test pytest -vs tests/unit_tests
docker-compose -f test-docker-compose.yaml down

0 comments on commit 77ad0c5

Please sign in to comment.