Makefile: Improve test target
This commit is contained in:
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@@ -1,8 +1,8 @@
|
|||||||
name: Test
|
name: Build & Test
|
||||||
on: [ push, pull_request ]
|
on: [ push, pull_request ]
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: Test
|
name: Build & Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out source code
|
- name: Check out source code
|
||||||
@@ -26,4 +26,4 @@ jobs:
|
|||||||
run: make
|
run: make
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: make run & make large-tests
|
run: make test
|
||||||
|
|||||||
12
Makefile
12
Makefile
@@ -66,6 +66,12 @@ install-deps:
|
|||||||
run:
|
run:
|
||||||
cd build && ./notes
|
cd build && ./notes
|
||||||
|
|
||||||
.PHONY: large-tests
|
.PHONY: test
|
||||||
large-tests:
|
test: all
|
||||||
pytest
|
@cd build ;\
|
||||||
|
./notes --port=8040 &\
|
||||||
|
NOTES_PID=$$! ;\
|
||||||
|
pytest .. ;\
|
||||||
|
PYTEST_RESULT=$$? ;\
|
||||||
|
kill $$NOTES_PID ;\
|
||||||
|
exit $$PYTEST_RESULT
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ from time import sleep
|
|||||||
from selenium import webdriver
|
from selenium import webdriver
|
||||||
from selenium.webdriver.chrome.options import Options
|
from selenium.webdriver.chrome.options import Options
|
||||||
|
|
||||||
INDEX_URL = "http://localhost:8050"
|
INDEX_URL = "http://localhost:8040"
|
||||||
|
|
||||||
|
|
||||||
def _launch():
|
def _launch():
|
||||||
|
|||||||
Reference in New Issue
Block a user