• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

AY1920S1-CS2103T-T11-1 / main / 127 / 1
82%
master: 82%

Build:
DEFAULT BRANCH: master
Ran 23 Oct 2019 10:25AM UTC
Files 105
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Oct 2019 10:23AM UTC coverage: 63.26% (+6.4%) from 56.873%
127.1

push

travis-ci

qweiping31415
Budget developments for mid-v1.3 (#103)

* Add unit tests for Budget class

* Add unit tests for Percentage class

* Add unit tests for Percentage class (supplement to previous commit)

* Add unit tests for AddBudgetCommand

* Add unit tests for AddBudgetCommandParser

* Add unit tests for UniqueBudgetList

* Add unit tests for JsonAdaptedBudget

* Add unit tests for SwitchBudgetCommand

* Add unit tests for SwitchBudgetCommandParser

* Update UniqueBudgetList to automatically set newly added budget as primary

* Add Budget field to Expense

* Update AddExpense method in AddressBook to suit the new Expense with a Budget field

Specifically,
step 1: check primary budget - if null, add default and set primary, if yes - do nothing
step 2: check expense's budget - if null, add to primary budget, if yes - add to corresponding budget
step 3: add expense to expenses list

* Cosmetic changes: Remove extra whitespace

* Check null parameters in JsonAdaptedBudget constructor

* Update EditCommand following the changes to Expense class (new budgetName field)

* Add method to check which expenses are within current budget period

Other changes:
- add method to update the proportion used
- check for duplicate expense before adding
- change expired condition to include end date
- increase default budget limit
- cosmetic changes to make code more concise

* Change Expense's budgetName field type from String to Description

* Update tests following the addition of budgetName field to Expense class

* Fix checkstyle errors in Main and Test

* Update Percentage class such that percentage larger than 1 will be treated as 1 instead of throwing an exception

* Fix unit test failures due to addition of Category field to Expense

* Fix checkstyle errors in Main and Test

1591 of 2515 relevant lines covered (63.26%)

0.63 hits per line

Source Files on job 127.1
  • Tree
  • List 0
  • Changed 19
  • Source Changed 9
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 48
  • Travis Job 127.1
  • 98705c64 on github
  • Prev Job for on master (#118.1)
  • Next Job for on master (#133.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc