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
Class Project
DIGIPUS
Commits
8e698dc4
Commit
8e698dc4
authored
Oct 09, 2020
by
Alfian Fuadi Rafli
Browse files
Delete functional test from unit test pipeline
parent
658d59d5
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
8e698dc4
...
...
@@ -30,12 +30,6 @@ UnitTest:
coverage
:
'
/TOTAL\s+\d+\s+\d+\s+(\d+)%/'
before_script
:
-
export DATABASE_URL=postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres:5432/$POSTGRES_DB
-
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 -yy
-
apt-get update -qq && apt-get install -y -qq unzip
-
apt-get install -y google-chrome-stable
-
apt-get install -y xvfb
-
pip install -r requirements.txt
-
python manage.py makemigrations
-
python manage.py migrate
...
...
app/tests.py
View file @
8e698dc4
...
...
@@ -1420,36 +1420,6 @@ class RevisiMateriTest(TestCase):
self
.
client
.
logout
()
class
NameBannerFunctionalTest
(
LiveServerTestCase
):
selenium
=
None
@
classmethod
def
setUpClass
(
cls
):
super
().
setUpClass
()
options
=
Options
()
options
.
add_argument
(
"--headless"
)
options
.
add_argument
(
"start-maximized"
)
options
.
add_argument
(
"disable-infobars"
)
options
.
add_argument
(
"--disable-extensions"
)
options
.
add_argument
(
"--disable-dev-shm-usage"
)
options
.
add_argument
(
"--no-sandbox"
)
options
.
add_argument
(
"--no-sandbox"
)
cls
.
selenium
=
webdriver
.
Chrome
(
ChromeDriverManager
().
install
(),
chrome_options
=
options
)
cls
.
selenium
.
implicitly_wait
(
10
)
@
classmethod
def
tearDownClass
(
cls
):
cls
.
selenium
.
quit
()
super
().
tearDownClass
()
def
test_list_todo_available
(
self
):
self
.
selenium
.
get
(
f
"
{
self
.
live_server_url
}
"
)
try
:
self
.
assertIn
(
"Digipus"
,
self
.
selenium
.
find_element_by_css_selector
(
"nav.katalog-navbar"
).
text
)
except
NoSuchElementException
:
self
.
fail
(
"No such element: Katalog Brand"
)
class
GenerateDummyCommandTest
(
TestCase
):
def
setUp
(
self
):
self
.
material_numbers
=
[
5
,
10
,
25
,
100
]
...
...
app/tests.py.56b44c7bd7ec54dbc681b2c3905ccac9.tmp
0 → 100644
View file @
8e698dc4
This diff is collapsed.
Click to expand it.
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