Fakultas Ilmu Komputer UI

Commit 2cee6bfe authored by Rani Lasma Uli's avatar Rani Lasma Uli
Browse files

add new readme section and fix gitlab-ci

parent fbfd1cc1
Pipeline #25801 failed with stages
in 6 minutes and 42 seconds
......@@ -45,8 +45,8 @@ FunctionalTest:
- apt-get install -y google-chrome-stable
- apt-get install -y xvfb
- wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz
- tar -xvzf geckodriver*
- chmod +x geckodriver
- sh -c 'tar -x geckodriver -zf geckodriver-v0.23.0-linux64.tar.gz -O > /usr/bin/geckodriver'
- chmod chmod +x /usr/bin/geckodriver
- pip install -r requirements.txt
when: on_success
script:
......
......@@ -8,6 +8,7 @@
- [Refactoring and Clean Code](#refactoring-and-clean-code)
- [Why Need Test Organization](#why-need-test-organization)
- [Mutation Testing](#mutation-testing)
- [Mocking Manually vs Library](#mocking-manually-vs-library)
- [URL](#url)
- [Install Modules](#install-modules)
......@@ -216,4 +217,7 @@ Untuk membunuh mutant ini, saya menambah test seperti berikut ini.
self.assertFalse('location' in response)
```
Hal ini akan membuat mutant menghasilkan kode response 302, sedangkan kode yang sebenarnya akan mengembalikan kode response 200.
\ No newline at end of file
Hal ini akan membuat mutant menghasilkan kode response 302, sedangkan kode yang sebenarnya akan mengembalikan kode response 200.
#### Mocking Manually vs Library
......@@ -29,7 +29,7 @@ class FunctionalTest(StaticLiveServerTestCase):
# linux
# self.browser = webdriver.Chrome('./chromedriver',
# options=self.options)
self.browser = webdriver.Firefox('./geckodriver')
self.browser = webdriver.Firefox('~/usr/bin/geckodriver')
self.browser.implicitly_wait(3)
......
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