Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix data #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/profile/.fvm/flutter_sdk
4 changes: 4 additions & 0 deletions examples/profile/.fvm/fvm_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"flutterSdkVersion": "3.0.5",
"flavors": {}
}
6 changes: 6 additions & 0 deletions examples/profile/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ dart_code_metrics:
number-of-methods: 10
weight-of-class: 0.33
maintainability-index: 50
rules:
- member-ordering-extended:
exclude:
- integration_test/**
- test_screen/**

linter:
rules:
public_member_api_docs: true
sort_pub_dependencies: false
2 changes: 2 additions & 0 deletions examples/profile/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ android {
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
multiDexEnabled true
}

buildTypes {
Expand All @@ -68,4 +69,5 @@ dependencies {
androidTestImplementation 'androidx.test:runner:1.4.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.yandex.android:maps.mobile:4.0.0-full'
implementation 'com.android.support:multidex:1.0.3'
}
8 changes: 8 additions & 0 deletions examples/profile/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
targets:
$default:
sources:
- lib/**
- pubspec.*
- $package$
# Allows the code generator to target files outside of the lib folder
- integration_test/**.dart
6 changes: 6 additions & 0 deletions examples/profile/integration_test/.run/test.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="test" type="FlutterRunConfigurationType" factoryName="Flutter">
<option name="filePath" value="$PROJECT_DIR$/integration_test/gherkin_suite_test.dart" />
<method v="2" />
</configuration>
</component>
27 changes: 27 additions & 0 deletions examples/profile/integration_test/features/profile.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#language: ru
#noinspection NonAsciiCharacters

Функциональность: Профиль

Сценарий: Успешное заполнение профиля
Когда Я перехожу к редактированию профиля
И Я указываю фамилию "Semenikhina"
И Я указываю дату рождения "1998-11-14"
И Я указываю имя "Daria"
И Я указываю отчество "Evgenevna"
И Я перехожу далее
И Я выбираю город "Voronezh"
И Я перехожу далее
И Я выбираю "Sleep" из интересов
И Я перехожу далее
И Я заполняю заметку о себе "Тестовая заметка о себе"
И Я перехожу далее
И Я перехожу к редактированию профиля
Тогда Я вижу заполненные поля ФИО
И Я вижу заполненное поле даты рождения
Когда Я перехожу далее
Тогда Я вижу заполненное поле города
Когда Я перехожу далее
Тогда Я вижу выбранные интересы
Когда Я перехожу далее
Тогда Я вижу заполненное поле заметки о себе
38 changes: 38 additions & 0 deletions examples/profile/integration_test/gherkin_suite_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import 'package:flutter_gherkin/flutter_gherkin.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:gherkin/gherkin.dart';
import 'package:profile/runner.dart' as app;
import 'package:surf_logger/surf_logger.dart';

import 'step_definitions/main_step_definitions.dart';
import 'step_definitions/profile_step_definitions.dart';

part 'gherkin_suite_test.g.dart';

@GherkinTestSuite()
void main() {
executeTestSuite(
configuration: FlutterTestConfiguration(
featureDefaultLanguage: 'ru',
order: ExecutionOrder.alphabetical,
defaultTimeout: const Duration(minutes: 5),
reporters: [
StdoutReporter(MessageLevel.error)
..setWriteLineFn(Logger.d)
..setWriteFn(Logger.d),
ProgressReporter()
..setWriteLineFn(Logger.d)
..setWriteFn(Logger.d),
TestRunSummaryReporter()
..setWriteLineFn(Logger.d)
..setWriteFn(Logger.d),
JsonReporter(writeReport: (_, __) => Future<void>.value()),
],
stepDefinitions: [
...MainStepDefinitions.steps,
...ProfileStepDefinitions.steps,
],
),
appMainFunction: (world) => app.run(),
);
}
Loading