Skip to content

Commit a90f66e

Browse files
add makefile and pytest
1 parent ae2b484 commit a90f66e

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

scripts/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.PHONY: install build publish lint test integration_test coverage
2+
3+
install:
4+
poetry install
5+
6+
build:
7+
poetry build
8+
9+
publish:
10+
poetry publish -r rd-ai-common-artifacts
11+
12+
lint:
13+
poetry run mypy --explicit-package-bases --namespace-packages outsystems/
14+
poetry run flake8
15+
16+
test:
17+
poetry run pytest tests
18+
19+
coverage:
20+
poetry run pytest --cov=outsystems tests --cov-config .coveragerc --cov-report=html:coverage --cov-report=xml

scripts/pytest.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[pytest]
2+
testpaths = test/unit
3+
addopts = --cov=outsystems --cov-report=xml --cov-report=term

0 commit comments

Comments
 (0)