Split unit / integration tests a bit (#956)
Unit tests should be quick and run frequently. Integration tests can be longer and run less often. Split them up.
This commit is contained in:
parent
3cbcddb651
commit
4f9de12556
|
@ -15,7 +15,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: run
|
- name: run
|
||||||
run: sudo ./scripts/test-in-lxd.sh ${{ matrix.image }} ./scripts/runtests.sh
|
run: sudo ./scripts/test-in-lxd.sh ${{ matrix.image }} "make check"
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
|
|
7
Makefile
7
Makefile
|
@ -55,10 +55,13 @@ flake8:
|
||||||
$(PYTHON) -m flake8 $(CHECK_DIRS) --exclude gettext38.py,contextlib38.py
|
$(PYTHON) -m flake8 $(CHECK_DIRS) --exclude gettext38.py,contextlib38.py
|
||||||
|
|
||||||
unit:
|
unit:
|
||||||
echo "Running unit tests..."
|
python3 -m unittest discover
|
||||||
|
|
||||||
|
integration:
|
||||||
|
echo "Running integration tests..."
|
||||||
./scripts/runtests.sh
|
./scripts/runtests.sh
|
||||||
|
|
||||||
check: unit
|
check: unit integration
|
||||||
|
|
||||||
probert:
|
probert:
|
||||||
@if [ ! -d "$(PROBERTDIR)" ]; then \
|
@if [ ! -d "$(PROBERTDIR)" ]; then \
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eux
|
set -eux
|
||||||
python3 -m unittest discover
|
|
||||||
|
|
||||||
testschema=.subiquity/test-autoinstall-schema.json
|
testschema=.subiquity/test-autoinstall-schema.json
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue