diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3052d78..6538ab2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,4 +27,4 @@ jobs: pdm install - name: Run unit tests - run: pdm test + run: pdm test test/ diff --git a/pyproject.toml b/pyproject.toml index 0018a1f..1818f91 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,10 +56,10 @@ test = [ ] [tool.pdm.scripts] -test = "python -m pytest" +test = "python -m pytest {args:test/}" testenv = "npx -y mountebank --host localhost --allowInjection --configfile testapi/apis.ejs" -atest = "python -m robot -P src --xunit xunit.xml --outputdir results" -tests = { composite = ["test test/", "atest atest/"] } +atest = "python -m robot -P src --xunit xunit.xml --outputdir results {args:atest/}" +tests = { composite = ["test", "atest"] } format = "ruff format ." lint = "ruff check ." docs = "python -m robot.libdoc -P src REST docs/index.html"