File: tests.sh

package info (click to toggle)
baler 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 207,900 kB
  • sloc: python: 2,468; sh: 98; makefile: 7
file content (24 lines) | stat: -rwxr-xr-x 404 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

# This script is used to run the tests.

# Exit the script if any command fails
set -e

# Variables
PYTEST_OPTIONS="--verbose"

# Function to run pytest
function run_pytest() {
  echo "Running pytest with options: ${PYTEST_OPTIONS}"
  poetry run pytest ${PYTEST_OPTIONS}
  echo "Pytest completed successfully."
}

# Main script
function main() {
  run_pytest
}

# Run the main function
main