Skip to content

Commit 4f87c41

Browse files
committed
separate unit, integration & aat tests
1 parent 14897c0 commit 4f87c41

8 files changed

Lines changed: 19 additions & 10 deletions

File tree

.github/workflows/main.yaml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,29 @@ jobs:
2222
- name: Setup environment & install dependencies
2323
run: make setup
2424

25-
- name: Setup AAT
26-
run: |
27-
git clone https://github.com/xconnio/xconn-aat-setup.git
28-
cd xconn-aat-setup
29-
make up
30-
sudo snap install wick --classic
31-
timeout 30 bash -c 'until wick --url ws://localhost:8081/ws publish test; do sleep 1; done'
32-
33-
- name: Run tests
25+
- name: Run unit tests
3426
run: make test
3527

28+
- name: Install wick
29+
run: sudo snap install wick --classic
30+
3631
- name: Run Integration tests
3732
run: |
3833
make install-nxt
3934
nxt start -c tests/ &
35+
timeout 30 bash -c 'until wick --url ws://localhost:8079/ws publish test; do sleep 1; done'
4036
make integration
4137
38+
- name: Setup AAT
39+
run: |
40+
git clone https://github.com/xconnio/xconn-aat-setup.git
41+
cd xconn-aat-setup
42+
make up
43+
timeout 30 bash -c 'until wick --url ws://localhost:8081/ws publish test; do sleep 1; done'
44+
45+
- name: Run AAT tests
46+
run: make aat
47+
4248
ruff:
4349
runs-on: ubuntu-latest
4450
steps:

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ lint:
1717
./.venv/bin/ruff check .
1818

1919
test:
20-
./.venv/bin/pytest -s -v
20+
./.venv/bin/pytest -s -v tests/unit
2121

2222
run:
2323
./.venv/bin/xconn example:app --directory examples/simple
@@ -47,3 +47,6 @@ install-nxt:
4747
integration:
4848
make install-nxt
4949
./.venv/bin/pytest -s -v tests/integration/
50+
51+
aat:
52+
./.venv/bin/pytest -s -v tests/aat/

tests/aat/__init__.py

Whitespace-only changes.

tests/unit/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)