Makefile: Improve test target

dependabot/go_modules/src/go/github.com/microcosm-cc/bluemonday-1.0.5
Alinson S. Xavier 5 years ago
parent 990ceb78b9
commit ce19993078

@ -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

@ -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():

Loading…
Cancel
Save