Roland Geider
4935ad4c77
Comment test
...
We need a navigator stack to test that we arrive back at the detail page or at
least a navigator observer to check that we pop() the page
2021-04-28 12:52:06 +02:00
Roland Geider
32ecd9e6a1
Commit set model test stub
2021-04-28 10:46:57 +02:00
Roland Geider
90c1f3c3b6
Add simple test for exercise detail widget
2021-04-28 10:45:31 +02:00
Roland Geider
f67cb1797b
Calculates reps for a set locally
...
This saves us unneeded round trips to the server
See #14
2021-04-24 13:58:14 +02:00
Roland Geider
adb1dec9e6
Revert "Add tests with golden files"
...
This reverts commit a7b67631df .
2021-04-24 13:47:28 +02:00
Roland Geider
a7b67631df
Add tests with golden files
...
Let's see if this doesn't make too much work later on, when changing some detail
in a widget causes the test to fail
2021-04-24 12:31:08 +02:00
Roland Geider
3c21650003
Translate week day names in workout screens
2021-04-24 12:31:08 +02:00
Roland Geider
6cf54b231e
Add tests for MealForm
2021-04-23 13:48:02 +02:00
Roland Geider
2424199e09
Add tests for PlanForm
2021-04-23 12:47:12 +02:00
Roland Geider
1b7b78c640
Add tests for DayFormWidget
2021-04-23 11:32:00 +02:00
Roland Geider
b175763c94
Test that the current workout description is pre filled
2021-04-23 10:44:05 +02:00
Roland Geider
3c4ac3861d
Test the WorkoutForm form
2021-04-22 18:35:05 +02:00
Roland Geider
5bc1ca699d
Return a new instance when adding nutritional values
...
Changing the current one doesn't make sense
2021-04-22 10:28:53 +02:00
Roland Geider
8c31f2ef09
Add more tests
2021-04-21 22:05:50 +02:00
Roland Geider
4f06e9b083
Bump dependencies versions
2021-04-21 11:02:19 +02:00
Roland Geider
98981b0c68
Improve workout log page
...
This view now shows the logs performed on the selected day, as well as charts
for the individual exercises
Closes #17
2021-04-19 16:31:58 +02:00
Roland Geider
5051c28c40
Test that old logs are shown in the gym mode
2021-04-19 16:31:57 +02:00
Roland Geider
7e2ba3468d
Show past logs in gym mode
...
See #13
2021-04-15 13:28:12 +02:00
Roland Geider
9988807c25
Move data to test data folder
2021-04-15 11:05:35 +02:00
Roland Geider
d2a7733703
Add simple widget test for gym mode screen
2021-04-14 20:28:49 +02:00
Roland Geider
e76ba740c8
Use setter to save ID and object references
2021-04-14 12:21:40 +02:00
Roland Geider
9b791eba8c
Add simple widget test for workout plan screen
2021-04-13 17:50:42 +02:00
Roland Geider
47e9c12d26
Add simple widget test for nutritional plan screen
2021-04-13 17:12:30 +02:00
Roland Geider
ad7507c8b7
Update license header as well
2021-04-13 10:28:15 +02:00
Roland Geider
9c851f202f
Add test for setting model
2021-04-13 10:28:15 +02:00
Roland Geider
6d67fefb1b
Don't generate mocks for weight_provider_test.dart
...
This is already done for the base test
2021-04-07 14:12:51 +02:00
Roland Geider
bf9abea7aa
Render forms in own scaffold
...
This eliminates many of the overflow problems from the bottom sheet
2021-04-02 17:35:31 +02:00
Roland Geider
63584fb8f2
Use individual endpoints to load plan data
...
While this results in way more requests needed, it has the great benefit of using
the same data structure for reading and writing. This saves us a lot of headaches
in the data modelling and we don't have to care that the info endpoints looked a
bit different.
2021-04-01 16:28:35 +02:00
Roland Geider
97829e0408
Add more tests for nutrition and workout plan overview
2021-03-30 13:25:36 +02:00
Roland Geider
5263c074f2
Make tests work with (no sound) null safety
2021-03-30 12:51:18 +02:00
Roland Geider
ecd2773a87
Upgrade packages and move application to null safety
2021-03-25 22:20:16 +01:00
Roland Geider
c6228ec048
Add more tests for the body weight screen
2021-03-19 10:23:57 +01:00
Roland Geider
d4ca43291d
Skip auth card tests and add body weight ones
2021-03-18 22:10:43 +01:00
Roland Geider
b647ec64ca
Set correct workoutID name
2021-03-10 11:06:52 +01:00
Roland Geider
0ce2b6efca
Move URI generation to helper
2021-03-09 11:42:44 +01:00
Roland Geider
af5027b7ab
Remove unneeded whitespace
2021-01-23 10:54:52 +01:00
Roland Geider
62926ae549
Refactor makeUrl
...
The object ID is an integer and there is now an objectMethod for special object
endpoints.
2021-01-22 23:11:52 +01:00
Roland Geider
26dafb7ccc
Sort weight entries by date (newest first)
2021-01-19 11:48:26 +01:00
Roland Geider
696eb30c26
Use constants for HTTP headers
2021-01-19 11:32:58 +01:00
Roland Geider
fdc3996aed
Fix base provider test
2020-12-28 18:27:59 +01:00
Roland Geider
44b6a80db8
Rename test file to be more consistent with the others
2020-12-28 12:36:53 +01:00
Roland Geider
7d78a77500
Refactor the base provider
...
The http client is now passed as a constructor argument and de-clutters all the
functions, while still allowing for mocking.
2020-12-27 12:51:40 +01:00
Roland Geider
8257153569
Fix body weight test
2020-12-27 12:21:08 +01:00
Roland Geider
33a3c71af0
Some work on makeUrl helper
2020-12-26 19:15:55 +01:00
Roland Geider
571e933281
Fix tests
2020-12-22 11:11:39 +01:00
Roland Geider
aed4beb0ab
Delete empty dummy test
2020-12-06 17:15:15 +01:00
Roland Geider
1c9d0ab7f6
Add copyright notice to all files
2020-12-06 17:14:50 +01:00
Roland Geider
4c12607671
Add uncommited weight model test
2020-12-06 16:22:26 +01:00
Roland Geider
d510079055
Fix tests
2020-12-06 16:20:32 +01:00
Roland Geider
1d5e61552f
Improvements to weight edit form
2020-12-06 14:55:41 +01:00