forked from eatvio/eatvio_app
108 lines
2.9 KiB
Dart
108 lines
2.9 KiB
Dart
import 'package:eatvio_app/features/dev_tools/test_cases.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
void main() {
|
|
group('DevTools TestCases bulk', () {
|
|
test('all case names are readable', () {
|
|
final cases = <TestCases>[
|
|
CreateRecipeTask(),
|
|
Test850task(),
|
|
GetChatRoomPreviews(),
|
|
GetChatRoom(),
|
|
SendMessage(),
|
|
GetChatMessages(),
|
|
GetChatRoomIdByUserSlug(),
|
|
GetBlogPostList(),
|
|
GetRecipes(),
|
|
GetDiets(),
|
|
GetPlans(),
|
|
GetBlogPostComments(),
|
|
SendBlogPostComment(),
|
|
GetDietsComments(),
|
|
SendDietsComment(),
|
|
GetPlansComments(),
|
|
SendPlansComment(),
|
|
GetRecipesComments(),
|
|
AuthServiceTest(),
|
|
DiaryServiceTest(),
|
|
BlockedUserServiceTest(),
|
|
PlanServiceTest(),
|
|
AboutRecipeServiceTest(),
|
|
BlogPostServiceTest(),
|
|
CalendarServiceTest(),
|
|
CardsServiceTest(),
|
|
ConsultantServiceTest(),
|
|
ConsultationServiceTest(),
|
|
CreateDietServiceTest(),
|
|
CreatePlanServiceTest(),
|
|
GlossaryServiceTest(),
|
|
MyDietsServiceTest(),
|
|
MyPlansServiceTest(),
|
|
MyRecipesServiceTest(),
|
|
NotificationsServiceTest(),
|
|
PlansServiceTest(),
|
|
ProfileServiceTest(),
|
|
RegistrationServiceTest(),
|
|
ResetPasswordServiceTest(),
|
|
SettingsServiceTest(),
|
|
WsServiceTest(),
|
|
];
|
|
|
|
for (final c in cases) {
|
|
expect(c.name, isNotEmpty);
|
|
}
|
|
});
|
|
|
|
test('run() does not throw for all cases', () async {
|
|
final cases = <TestCases>[
|
|
CreateRecipeTask(),
|
|
Test850task(),
|
|
GetChatRoomPreviews(),
|
|
GetChatRoom(),
|
|
SendMessage(),
|
|
GetChatMessages(),
|
|
GetChatRoomIdByUserSlug(),
|
|
GetBlogPostList(),
|
|
GetRecipes(),
|
|
GetDiets(),
|
|
GetPlans(),
|
|
GetBlogPostComments(),
|
|
SendBlogPostComment(),
|
|
GetDietsComments(),
|
|
SendDietsComment(),
|
|
GetPlansComments(),
|
|
SendPlansComment(),
|
|
GetRecipesComments(),
|
|
AuthServiceTest(),
|
|
DiaryServiceTest(),
|
|
BlockedUserServiceTest(),
|
|
PlanServiceTest(),
|
|
AboutRecipeServiceTest(),
|
|
BlogPostServiceTest(),
|
|
CalendarServiceTest(),
|
|
CardsServiceTest(),
|
|
ConsultantServiceTest(),
|
|
ConsultationServiceTest(),
|
|
CreateDietServiceTest(),
|
|
CreatePlanServiceTest(),
|
|
GlossaryServiceTest(),
|
|
MyDietsServiceTest(),
|
|
MyPlansServiceTest(),
|
|
MyRecipesServiceTest(),
|
|
NotificationsServiceTest(),
|
|
PlansServiceTest(),
|
|
ProfileServiceTest(),
|
|
RegistrationServiceTest(),
|
|
ResetPasswordServiceTest(),
|
|
SettingsServiceTest(),
|
|
WsServiceTest(),
|
|
];
|
|
|
|
for (final c in cases) {
|
|
final result = await c.run(baseUrl: 'http://localhost');
|
|
expect(result, isA<TestResult>());
|
|
}
|
|
});
|
|
});
|
|
}
|