Commit Graph

142 Commits

Author SHA1 Message Date
Roland Geider
aa4d3c59d8 Fix tests 2022-02-18 20:29:34 +01:00
Roland Geider
5d28847c69 Add video model and recreate generated files 2022-01-29 11:48:02 +01:00
Roland Geider
4bb91f1c14 Update to flutter 2.8 2022-01-23 21:57:53 +01:00
Roland Geider
eea3e0d16b Recreate mocks and update pubspec.lock 2022-01-23 21:35:49 +01:00
Roland Geider
bc2b947b81 Recreate generated files 2022-01-23 20:52:40 +01:00
Roland Geider
dcfe3b8e4b Merge branch 'master' into barcode_scanner
# Conflicts:
#	test/gallery/gallery_screen_test.mocks.dart
#	test/measurements/measurement_categories_screen_test.mocks.dart
#	test/measurements/measurement_provider_test.mocks.dart
#	test/nutrition/nutritional_plan_form_test.mocks.dart
#	test/other/base_provider_test.mocks.dart
#	test/workout/workout_form_test.mocks.dart
#	test/workout/workout_set_form_test.mocks.dart
2022-01-23 20:33:45 +01:00
Github-actions
379d9ca067 Automatic linting 2022-01-16 18:36:05 +00:00
Roland Geider
0d5df9d786 Recreate generated files 2022-01-15 13:27:01 +01:00
Adrian Halko
fa4dfe6ee5 Regenerated all classes. 2021-12-03 16:44:52 +01:00
Adrian Halko
324afff37c Added close label into app_en.arb. Deleted ingredient from nutritional_meal_item_form_test.dart. Changed return inside searchIngredientWithCode function. 2021-12-01 15:28:01 +01:00
Adrian Halko
246162fb6d Added forgotten nutrition provider class. Changed tests names. 2021-11-23 17:10:22 +01:00
Adrian Halko
6939c6400f Created tests for used widgets and new functions. Added json files into test/fixtures(for mocking data) 2021-11-22 20:02:37 +01:00
Github-actions
ab885b1145 Automatic linting 2021-11-10 14:19:52 +00:00
Roland Geider
d8b7d45291 Upgrade dependencies and recreate generated files 2021-11-10 15:16:25 +01:00
Roland Geider
e5bd9e901f Add workaround for the AndroidMetadata checks
The metaDataAsMap method doesn't work during tests and throws a null check
error. A better solution should be implemented when possible.
2021-11-08 10:55:16 +01:00
Roland Geider
498a43f292 Test min application version check in auth provider 2021-11-08 09:42:32 +01:00
Roland Geider
9429899973 Organize tests in own folders 2021-11-08 09:42:32 +01:00
Roland Geider
89fa03de83 Fix typo in filename 2021-10-28 18:03:26 +02:00
Roland Geider
ff0e675860 Some refactoring for last used ingredients
It's easier to just use the already existing meal items rather than create
new logs that have the same infos.
2021-10-28 18:00:18 +02:00
Github-actions
e23937981d Automatic linting 2021-10-28 09:47:48 +00:00
Roland Geider
ea8eada7ac Commit generated mock files 2021-10-28 11:43:44 +02:00
Roland Geider
c593086692 Mark meal ID in logs as optional 2021-10-24 22:14:00 +02:00
Marvin M
2bc2d472d0 unnecessary_await_in_return 2021-10-08 15:11:45 +02:00
Marvin M
9d479e89b0 const_constructors
info: Prefer const with constant constructors. prefer_const_constructors
2021-10-07 20:40:09 +02:00
Marvin M
c2e881c139 Minor changes 2021-10-07 18:50:33 +02:00
Roland Geider
dae1e39ea7 Merge pull request #89 from ThilinaTCH/master
Allow user to give meals a description #70
2021-10-03 21:54:27 +02:00
Thilina Herath
7da45e93f7 test: update meal tests to include name property 2021-10-03 11:19:08 +08:00
Github-actions
1a84fec097 Automatic linting 2021-10-02 10:58:18 +00:00
Marvin M
45a2a5f857 Fixes pt 1 2021-10-01 17:18:17 +02:00
Thilina Herath
d6eb3deda7 Allow user to give meals a description #70
Add name field to meal form
2021-09-30 21:22:28 +08:00
Github-actions
19d079569a Automatic linting 2021-09-09 19:18:53 +00:00
Roland Geider
829f152734 Merge master 2021-09-07 17:37:20 +02:00
Roland Geider
8543652581 Merge branch 'master' into feature/measurements
# Conflicts:
#	lib/screens/dashboard.dart
#	test/base_provider_test.mocks.dart
#	test/gallery_screen_test.mocks.dart
#	test/nutritional_plan_form_test.mocks.dart
#	test/workout_form_test.mocks.dart
#	test/workout_set_form_test.mocks.dart
2021-09-07 17:03:15 +02:00
Roland Geider
3874a49fe0 Add measurement entries in the dashboard calendar 2021-09-06 18:33:54 +02:00
Roland Geider
c704f561db Show entries graph in the category overview 2021-09-06 18:08:07 +02:00
Roland Geider
376ad83000 Add first version of tests for measurement screens 2021-09-01 18:07:59 +02:00
Github-actions
d0f5139c56 Automatic linting 2021-09-01 14:23:38 +00:00
Roland Geider
6bb9ef4354 Update test
The date can now only be entered via the datepicker
2021-09-01 16:21:55 +02:00
Roland Geider
4a2e9c5e57 Re-create mocks 2021-09-01 16:13:07 +02:00
Roland Geider
b2195d4f55 Allow deleting and editing entries 2021-08-29 22:34:30 +02:00
Roland Geider
c9838ad8f5 Fix the tests 2021-08-28 22:16:29 +02:00
Roland Geider
93b159b3b9 Show chart with measurement entries values in detail view 2021-08-28 22:07:54 +02:00
ton-An
89e0060ff5 (MeasurementProvider) Fixed error handling
MeasurementProvider
(Edited)
- Fixed error handling
- implemented findEntryById and findCategoryById

MeasurementCategory
(Added)
- findEntryById()
2021-08-26 14:41:26 +02:00
Roland Geider
6cbe164ec8 Merge remote-tracking branch 'origin/feature/measurements' into feature/measurements
# Conflicts:
#	lib/models/measurements/measurement_entry.g.dart
2021-08-25 21:34:22 +02:00
Roland Geider
a2673fe764 Merge branch 'master' into feature/measurements
# Conflicts:
#	pubspec.lock
2021-08-25 16:52:15 +02:00
ton-An
7f5a8c1e2f Removed unnecessary tests 2021-08-25 16:28:08 +02:00
ton-An
755cdd5fae Pretty much finished the MeasurementProvider
-- MesurementProvider --
(Added)
- editCategory
- editEntry

-- MeasurementEntry --
(Added)
- copyWith

-- MeasurementCategory --
(Added)
- copyWith
2021-08-25 16:24:29 +02:00
ton-An
23a8226e72 Worked on the MeasurementProvider
(Added)
- addCategory()
- deleteCategory()
- addEntry()
- deleteEntry()
2021-08-25 14:43:53 +02:00
ton-An
19445c36a2 (Measurements) Added Equatable + Refactored
(MeasurementProvider)
- Passing in the WgerBaseProvider instead of extending with it
- Re-written tests
- Added the fixture reader to make test file less crowded

(Measurement Models)
- Added Equatable
- Re-written tests
2021-08-22 18:07:47 +02:00
Roland Geider
0462e41b20 Expand test for nutrition diary detail view 2021-08-17 11:45:52 +02:00