Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Collection of Practice
2019
1606885025-practice
Commits
2cee6bfe
Commit
2cee6bfe
authored
Nov 22, 2019
by
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
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
2cee6bfe
...
...
@@ -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
:
...
...
README.md
View file @
2cee6bfe
...
...
@@ -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
functional_tests/base.py
View file @
2cee6bfe
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment