Commit graph

717 commits

Author SHA1 Message Date
Markus M. May
8bdaddb389 Allow backwards compatibility to previous solution to add quotes 2018-06-23 22:41:01 +02:00
Markus M. May
e32f33a8d3 fixes #1130 2018-06-23 21:36:18 +02:00
Johannes Mockenhaupt
eac1d5ffdb
(Hopefully) fix iob(AMA|SMB)shouldBeLimited tests.
By making sure there is exactly one APS plugin enabled.
2018-06-23 13:12:29 +02:00
Johannes Mockenhaupt
b2a60e2fac
Disable unfinished noise tests. 2018-06-23 12:52:07 +02:00
Johannes Mockenhaupt
73e8a0c876
Rename BgReading.filtered to BgReading.isFiltered and add to NS.
Avoids collision with 'filtered' value in NS data.
2018-06-23 11:36:23 +02:00
Johannes Mockenhaupt
6d437b4afa
Test stubs. 2018-06-23 11:35:01 +02:00
Johannes Mockenhaupt
940d58fc79
Tests. 2018-06-23 01:27:37 +02:00
Johannes Mockenhaupt
6abad56b1f
Replace BgSourceInterface.advancedFilteringSupported.
Replaced by 'filtered' property on BgReading.
2018-06-23 01:26:36 +02:00
Johannes Mockenhaupt
49b84fb550
Reject SMB if bolus is queued/running or outdated. Fixes 1068. 2018-06-21 00:32:23 +02:00
Andy Rozman
47427ec68e - integration started
- states visible
- command framework added
- we get currect profile and compare it with AAPS profile
- setProfile command is disabled, if pumps profile is different we get warning
- bolus is enabled and working
- get remaining reservoir level
2018-06-16 18:13:29 +01:00
TebbeUbben
0d21a0ab62 Fixed tests 2018-06-09 23:03:31 +02:00
TebbeUbben
005039effc Objectives styling 2018-06-09 22:07:41 +02:00
TebbeUbben
f8c621dc6a Fixed tests 2018-06-03 11:04:33 +02:00
Johannes Mockenhaupt
ef8f4f1448
Fix unit test. 2018-06-01 12:24:09 +02:00
Milos Kozak
66e50f5b62
Merge pull request #1038 from jotomo/upstreaming
[Polish] Dialog/color consistency, translations and other small stuff
2018-05-15 13:09:50 +02:00
Johannes Mockenhaupt
561c7fb470
Add test. 2018-05-14 00:38:47 +02:00
Andy Rozman
2600a7009b Added UTests for PumpUtil and VirualPlugin (new methods) 2018-05-13 18:40:53 +01:00
Johannes Mockenhaupt
d80fecc390
Add T.now, plus, minus methods. 2018-05-13 12:44:47 +02:00
Milos Kozak
e562d0f437
Merge pull request #957 from triplem/charging_merged
Charging merged
2018-05-02 15:04:00 +02:00
Markus M. May
de92125967 Fixes wrong algo 2018-05-01 22:49:44 +02:00
Markus M. May
306d45bb3e Fix Boolean thingy 2018-05-01 22:15:22 +02:00
Markus M. May
12d80e96ef Merge latest dev version 2018-05-01 21:56:33 +02:00
Markus M. May
e91fd00836 Add Unit-Test, as well as fixtures for SSID handling 2018-05-01 21:46:37 +02:00
Johannes Mockenhaupt
7fbab357e8
Fix unit tests for added Combo plugin w/o engineering mode. 2018-05-01 13:25:12 +02:00
Milos Kozak
7063f4de8b
Merge pull request #879 from MilosKozak/temptargetfix
NewNSTreatment dialog cleanup
2018-04-17 07:45:08 +02:00
Milos Kozak
abadcd4eaa fix test 2018-04-16 23:29:53 +02:00
Milos Kozak
54048b29c4 NewNSTreatment dialog cleanup 2018-04-12 21:45:59 +02:00
Markus M. May
42e36ab818 Fix #842 2018-04-12 21:08:06 +02:00
Milos Kozak
e9ac979a1b fix NPE in TempBasal treatments tab 2018-04-09 19:52:01 +02:00
Milos Kozak
82bb65560b QuickWizardTest part1 2018-04-09 00:37:23 +02:00
Milos Kozak
a609d806d1 fix tests 2018-04-08 20:37:05 +02:00
Milos Kozak
2fee7f3186 fix NPE in Simulator 2018-04-07 16:33:37 +02:00
Milos Kozak
ee133f87ae fix test 2018-04-05 10:56:55 +02:00
Milos Kozak
f6cd1201e3 Treatments refactor 2018-04-05 09:39:18 +02:00
Milos Kozak
149818a902
Merge pull request #821 from triplem/g44
Gradle Update to 4.4
2018-04-02 10:28:13 +02:00
Milos Kozak
ad74a9ba9a fix errors in tests 2018-04-02 10:29:19 +02:00
Markus M. May
6d6dee6f0b Use org.junit instead of junit.framework, use static imports 2018-04-01 23:01:37 +02:00
Milos Kozak
5e2fdebc07 fix travis 2018-04-01 20:02:22 +02:00
Milos Kozak
5ce184e67d fix time in dialogs during DST change 2018-04-01 18:44:58 +02:00
Milos Kozak
0a03798de9 move treatments interface out of ConfigBuilder 2018-04-01 11:09:58 +02:00
Milos Kozak
34ec1225c6 fix NSCLIENT after plugin refactor 2018-03-31 21:41:14 +02:00
Milos Kozak
c57d14aa05 MainAppTest 2018-03-31 15:00:32 +02:00
Milos Kozak
364364f205 ConfigBuilderTest 2018-03-31 11:31:09 +02:00
Milos Kozak
a30334f5d5 PluginDescriptionTest 2018-03-31 10:09:29 +02:00
Milos Kozak
3b3662af80 Merge branch 'dev' into wip 2018-03-31 00:39:35 +02:00
Milos Kozak
bcb733e42c Plugins refactor 2018-03-31 00:36:03 +02:00
Milos Kozak
e4f2049405 PumpEnactTestResult 2018-03-29 18:44:16 +02:00
Johannes Mockenhaupt
52c6d209af
Clean up initial profile push to pump. 2018-03-28 21:20:56 +02:00
Milos Kozak
3567320788 fix test 2018-03-27 19:45:44 +02:00
Milos Kozak
95f2e5d913 IobTotalTest 2018-03-27 16:41:37 +02:00
Milos Kozak
689fda5969 IobTest 2018-03-27 14:36:43 +02:00
Milos Kozak
1b9b20cd41 1st ProfileSwitch must be with zero duration, ProfileIntervalsTest 2018-03-27 14:19:52 +02:00
Milos Kozak
0a87b0ede7 MealDataTest 2018-03-26 22:59:04 +02:00
Milos Kozak
f8c9fac7b1 NonOverlapingIntervalsTest 2nd 2018-03-26 22:55:38 +02:00
Milos Kozak
cc436a09d9 TempBasal, TempTarget refactor; NonOverlapingIntervalsTest 2018-03-26 22:37:53 +02:00
Milos Kozak
a4cb4cbbd5 OverlapingIntervalsTest 2018-03-26 19:46:18 +02:00
Milos Kozak
21c6827cf4 more GlucoseStatusTests 2018-03-26 17:47:25 +02:00
Milos Kozak
d071ca5b88 GlucoseStatusTest & fix 2018-03-26 16:51:25 +02:00
Milos Kozak
5c5b8ee2f0 DetailedBolusInfo test & fix 2018-03-26 13:25:53 +02:00
Milos Kozak
afe3d68a10 display SMB reasons 2018-03-25 23:56:52 +02:00
Milos Kozak
044a3fc10f LoopPluginTest 2018-03-23 20:10:45 +01:00
Milos Kozak
661595792f rename InsightPump -> Insight 2018-03-23 17:51:05 +01:00
Milos Kozak
15d8719508 collect most limited reason along with all reasons 2018-03-23 17:36:49 +01:00
Milos Kozak
ad8ff15cdc getMax... constraints functions 2018-03-22 23:20:10 +01:00
Milos Kozak
0f531a9954 objectives cleanup & basal hard limits to constraints 2018-03-22 23:05:00 +01:00
Milos Kozak
ba09538f46 AMA - Autosens cleanup 2018-03-22 22:18:40 +01:00
Milos Kozak
76ee3c51e4 applyMaxIOBConstraints refactor & tests 2018-03-22 21:13:26 +01:00
Milos Kozak
1aba9a2564 applyCarbsConstraints refactor & tests 2018-03-22 10:31:07 +01:00
Milos Kozak
15158fb5ea applyBolusConstraints refactor & tests 2018-03-21 23:01:30 +01:00
Milos Kozak
c68ab9f1ca applyBasalPercentConstraints refactor & tests part2 2018-03-21 22:06:28 +01:00
Milos Kozak
e2ea44a8a8 applyBasalPercentConstraints reactor & tests part1 2018-03-21 20:24:02 +01:00
Milos Kozak
7a5d8e2ec9 use US locale in tests 2018-03-21 07:51:27 +01:00
Milos Kozak
ad7ec4daca fix tests 2018-03-20 23:47:37 +01:00
Milos Kozak
15ebfc1193 applyBasalConstraints reactor & tests 2018-03-20 22:09:22 +01:00
Milos Kozak
c2cfe4e7ea isSMBModeEnabled reactor & tests 2018-03-19 23:14:04 +01:00
Milos Kozak
26ecc3dd60 isAMAModeEnabled reactor & tests 2018-03-19 22:59:25 +01:00
Milos Kozak
f8a3b7aee7 isAutosensModeEnabled reactor & tests 2018-03-19 22:36:08 +01:00
Milos Kozak
f6fdef7986 isClosedLoopAllowed & isLoopInvokationAllowed tests 2018-03-19 22:20:42 +01:00
Milos Kozak
7178e1573a fix CommandQueueTest 2018-03-19 18:44:11 +01:00
Milos Kozak
ce63655097 move constraints interface functions from ConfigBuilder to ConstraintsChecker class 2018-03-19 18:21:02 +01:00
Milos Kozak
52ffcba047 generic Constraint type 2018-03-19 17:38:48 +01:00
Milos Kozak
b0a9f678f0 limitRunningLoop constraint 2018-03-19 13:11:25 +01:00
Johannes Mockenhaupt
643f3aee6c
Merge branch 'dev' into dev-merge 2018-03-18 20:20:40 +01:00
Milos Kozak
106de14f9a
Merge branch 'dev' into nodefaultprofile 2018-03-18 19:58:36 +01:00
Milos Kozak
22d89c3ffc more ProfileTest 2018-03-18 19:59:28 +01:00
Johannes Mockenhaupt
89d59584d5
Merge remote-tracking branch 'origin/dev' into dev-merge
* origin/dev:
  prepend line feed like suggested on jamoto code review
  Rename method to reflect jomoto code review
  Unit tests are always in engmode
  Fix boolean stuff in accordance to code review with adrian
  Cleanup boolean algrabra, add method for environment retrieval from logcontexxt
  Determine directory from logback
  more checks for null profile
  Disallow profile store on pump if on dev branch but not in engineering mode
  Disable profile switch if not in Engineering mode and on dev branch
  Add info to About dialog when engineering mode is enabled.
  On start, show notification if on dev-branch, but not EM, so CL is disabled.
  Add basic Engineering mode.

# Conflicts:
#	app/src/main/java/info/nightscout/androidaps/MainActivity.java
#	app/src/main/java/info/nightscout/androidaps/plugins/Overview/notifications/Notification.java
#	app/src/main/java/info/nightscout/androidaps/queue/CommandQueue.java
#	app/src/main/res/values/strings.xml
2018-03-18 19:47:23 +01:00
Milos Kozak
e916cf4d06 ProfileTest update 2018-03-18 19:15:01 +01:00
Markus M. May
f0bec534fa Rename method to reflect jomoto code review 2018-03-18 17:38:05 +01:00
Milos Kozak
3ee586b6c0 Profile tests . -> , conversion 2018-03-18 15:09:26 +01:00
Milos Kozak
f7621c4cc5 Profile tests 2018-03-18 15:02:21 +01:00
Markus M. May
18521d6634 Unit tests are always in engmode 2018-03-17 21:48:58 +01:00
Johannes Mockenhaupt
db00404e43
Merge commit 'origin/dev^' into combo-dev-merge
* commit 'origin/dev^': (313 commits)
  cleanup
  draw profile in dana profile viewer
  optimize imports
  draw basal in profile viewer
  BG autobackfill configurable
  travis 2nd try
  Save new profile when updating it
  Add environment variable to handle testCoverage
  do not pass DIA to SMB determine_basal
  show Dana model properly after communication error
  fix deviation slope calculations
  Read maximum basal and bolus amount from pump
  update maxIOB hard limits
  Allow bolus record only in new treatment dialog
  use safeGetString
  JsonHelper test
  food code cleanup
  Show bolus progress
  Missing import statement
  Insight: add treatment to progress event
  ...
2018-03-16 15:44:54 +01:00
Milos Kozak
fc070c95a7 use safeGetString 2018-03-12 11:22:19 +01:00
Milos Kozak
601dbc1036 JsonHelper test 2018-03-12 11:12:41 +01:00
Milos Kozak
c61fcdbe3f allow 15 & 30 pump disconnection 2018-03-01 23:59:44 +01:00
Johannes Mockenhaupt
a42d95df14
Unbreak unit test. 2018-02-18 13:33:24 +01:00
Johannes Mockenhaupt
5be9bf5a87
Combo: add unit test for calculateFakeBolusDate. 2018-02-04 20:43:31 +01:00
Milos Kozak
411add616b
Merge pull request #632 from jamorham/dev
Add Insight Pump Plugin
2018-02-02 09:21:57 +01:00
Milos Kozak
fada51c380
Merge pull request #597 from triplem/test
Add a unit test for Insulin Plugin
2018-01-30 22:47:33 +01:00
Markus M. May
a6f65f5d33 Enhance insulin plugin test 2018-01-30 19:52:57 +01:00
Jamorham
2c9cd89ff3
Add unit test 2018-01-26 22:44:12 +00:00
Milos Kozak
5a00b68f68 remove readstatus prior every command 2018-01-14 21:42:36 +01:00
Milos Kozak
99eef3b19a more round tests 2018-01-10 23:57:02 +01:00
Markus M. May
d4365a2352 Add a unit test for Insulin Plugin 2018-01-10 22:11:20 +01:00
kuchjir
e5b21ccc3e added BolusWizardTest 2018-01-07 22:16:08 +01:00
Milos Kozak
2bb37a4bfc fix doubled percentage when comming from NS 2017-12-22 21:03:36 +01:00
Milos Kozak
31975396a2 use joda-time 2017-12-22 02:55:40 +01:00
Milos Kozak
0101bc0a81 parse more iso formats 2017-12-03 17:34:29 +01:00
Milos Kozak
297617467e fix format and add test for fromISODateString 2017-11-20 13:34:13 +01:00
Milos Kozak
d7f8d75d06 Revert "Rounding issues visible in nightscout insulin field" 2017-09-18 21:24:22 +02:00
Wouter Lagerweij
02c2213545 Changed rounding to use BigDecimals to avoid noisy long doubles in output 2017-09-17 14:27:49 +02:00
Milos Kozak
0458ad65ce handle arrays separately 2016-12-31 14:52:23 +01:00
Milos Kozak
2e6c168adc TimeListEdit most work done 2016-12-31 13:11:32 +01:00
Milos Kozak
e1c2e4c492 TimeListEdit initial work 2016-12-30 16:43:43 +01:00
Milos Kozak
d6f4135d6e travis 2016-12-28 15:58:44 +01:00
Milos Kozak
d8696412b1 temporary disable korean danar 2016-12-21 14:48:36 +01:00
Milos Kozak
9b749202fd Objectives design 2016-06-04 17:28:05 +02:00