Fakultas Ilmu Komputer UI

Commit e5b62537 authored by Kevin Albert Simanjuntak's avatar Kevin Albert Simanjuntak
Browse files

add functional_test to gitlab-ci

parent d3a72f5a
Pipeline #21015 failed with stages
in 26 minutes and 43 seconds
stages:
- test
- functional-test
Test:
image: python:3.7
......@@ -11,3 +12,19 @@ Test:
- python3 manage.py test
tags:
- test
functional-test:
image: python:3.6
stage: functional-test
before_script:
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
- echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
- apt-get update -qq && apt-get install -y -qq unzip
- apt-get install -y google-chrome-stable
- apt-get install -y xvfb
- wget https://chromedriver.storage.googleapis.com/77.0.3865.40/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- pip install -r requirements.txt
script:
- python functional_tests.py
......@@ -18,7 +18,7 @@ class NewVisitorTest(unittest.TestCase):
# She is invited to enter a to-do item straight away
def test_can_start_a_list_and_retrieve_it_later(self):
self.browser.get('http://localhost:8000/homepage')
self.browser.get('https://pmpl-kevin-simanjuntak.herokuapp.com/homepage/')
# She notices the page title and header mention to-do lists
self.assertIn('To-Do', self.browser.title)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment