Fakultas Ilmu Komputer UI

Commit 993055a2 authored by Dwi Nanda Susanto's avatar Dwi Nanda Susanto
Browse files

[GREEN] pass all tests, update readme md adding code coverage on readme md

parent 5a95eb73
Pipeline #27679 passed with stages
in 20 minutes and 53 seconds
......@@ -9,6 +9,81 @@ The **deployed** simple home page can be accessed here :
[![coverage report](https://gitlab.cs.ui.ac.id/pmpl/practice-collection/2019/1506722720-practice/badges/fix_uas_take_home/coverage.svg)](https://gitlab.cs.ui.ac.id/pmpl/practice-collection/2019/1506722720-practice/commits/fix_uas_take_home)
# UAS TAKE HOME PROGRAMMING
first task is done : implementing header and footer in SQA way, branch is `fix_uas_take_home`
second task is done also : create my own feature, `reset all items` on branch `new_ftr_uas_take_home`
>here below is the code coverage for the the `unittest`
```
$ coverage report
Name Stmts Miss Cover
-----------------------------------------------------------
accounts/__init__.py 0 0 100%
accounts/admin.py 1 0 100%
accounts/authentication.py 22 0 100%
accounts/migrations/0001_initial.py 6 0 100%
accounts/migrations/__init__.py 0 0 100%
accounts/models.py 30 4 87%
accounts/tests/test_authentication.py 30 0 100%
accounts/tests/test_models.py 13 0 100%
accounts/tests/test_views.py 29 0 100%
accounts/urls.py 4 0 100%
accounts/views.py 28 2 93%
lists/__init__.py 0 0 100%
lists/admin.py 1 0 100%
lists/migrations/0001_initial.py 6 0 100%
lists/migrations/__init__.py 0 0 100%
lists/models.py 6 0 100%
lists/tests.py 74 0 100%
lists/urls.py 3 0 100%
lists/views.py 30 21 30%
manage.py 13 6 54%
superlists/__init__.py 0 0 100%
superlists/settings.py 30 0 100%
superlists/urls.py 7 0 100%
-----------------------------------------------------------
TOTAL 333 33 90%
Job succeeded
```
>and here below is the code coverage for the `functional test`
```
$ coverage report -m
Name Stmts Miss Cover Missing
----------------------------------------------------------------------------
accounts/__init__.py 0 0 100%
accounts/admin.py 1 0 100%
accounts/apps.py 3 3 0% 1-5
accounts/authentication.py 22 6 73% 10-11, 16-17, 25-26
accounts/migrations/0001_initial.py 6 0 100%
accounts/migrations/__init__.py 0 0 100%
accounts/models.py 30 4 87% 20, 22, 33, 37
accounts/tests.py 1 0 100%
accounts/urls.py 4 0 100%
accounts/views.py 28 0 100%
functional_test/__init__.py 0 0 100%
functional_test/base.py 55 18 67% 34-37, 41-56, 76-77
functional_test/test_layout_and_styling.py 9 0 100%
functional_test/test_list_item_validation.py 15 8 47% 12-19
functional_test/test_login.py 36 4 89% 38, 76-78
functional_test/test_my_lists.py 32 4 88% 44-47
functional_test/tests.py 52 12 77% 43-58
lists/__init__.py 0 0 100%
lists/admin.py 1 0 100%
lists/apps.py 3 3 0% 1-5
lists/migrations/0001_initial.py 6 0 100%
lists/migrations/__init__.py 0 0 100%
lists/models.py 6 0 100%
lists/tests.py 74 0 100%
lists/urls.py 3 0 100%
lists/views.py 30 11 63% 15, 19, 29-31, 34-40
----------------------------------------------------------------------------
TOTAL 417 73 82%
Job succeeded
```
# Exercise 3
Pada exercise 3 kali ini dibuat sebuah integration test yang akan mengautomasi waktu menunggu hingga terjadi perubahan pada rows.
Pada integration test ini sudah bisa melakukan listening terhadap request dari url LiveServer yang sedang aktif. Jadi tidak perlu melihat lagi url apa yang sedang berjalan.
......
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