Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Fix/comments and messages #41

Merged
merged 2 commits into from
Apr 21, 2022
Merged
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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

flutter = (fvm flutter || flutter)

# Описание скрипта по `make` или `make help`
# Script description and usage through `make` or `make help` commands
help:
@echo "Make something good"
@echo " or something worse"
Expand Down
2 changes: 1 addition & 1 deletion lib/src/core/error/parsing_exception.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ class ParsingException<From, To> implements Exception {
ParsingException(this.from);

@override
String toString() => 'ParsingException ocurred when parsing from $from';
String toString() => '$runtimeType ocurred when parsing from $from';
}
2 changes: 1 addition & 1 deletion makefiles/platform/mac.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ios-deep-clean:
@make pub-get
@make install-pods

# Запустить кодогенерацию в фоне
# Runes code generation in background
codegen-bg:
@nohup time /bin/bash -c ' \
flutter pub get \
Expand Down
12 changes: 6 additions & 6 deletions makefiles/test.mk
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.PHONY: test coverage

# Запустить тесты
# Run tests
test:
@time timeout 300 flutter test --concurrency=6 --dart-define=environment=testing --coverage test/

# Запустить все тесты и собрать общее покрытие
# Run tests and generate coverage report
coverage: test
@ #mv coverage/lcov.info coverage/lcov.base.info
@ #lcov -r coverage/lcov.base.info -o coverage/lcov.base.info "lib/**.freezed.dart" "lib/**.g.dart"
Expand All @@ -14,26 +14,26 @@ coverage: test
@lcov --summary coverage/lcov.info
@genhtml -o coverage coverage/lcov.info

# Интеграционные тесты
# Run integration tests
integration:
@flutter test \
--flavor integration \
--dart-define=environment=integration \
--coverage \
integration_test/app_test.dart

# Запустить тесты на последней стейбл версии флатера с поддержкой веба
# Run tests on the latest stable version with web support
# https://hub.docker.com/r/plugfox/flutter/tags?page=1&name=stable-web
#
# Если необходимо добавить sqlite последней версии:
# Add the latest SQLite support:
# ```
# echo "https://dl-cdn.alpinelinux.org/alpine/edge/main" > /etc/apk/repositories \
# echo "https://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
# echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
# apk update && apk --no-cache add sqlite sqlite-dev lcov
# ```
#
# Сконфигурировать git:
# Configure git:
# ```
# git config --global user.email "developer@domain.tld" \
# git config --global user.name "Flutter Developer" \
Expand Down