Skip to content

Commit

Permalink
Feature/add some unit tests (#1)
Browse files Browse the repository at this point in the history
* Update dependencies and remove unused code

* Add new tests, still problems in dio

* Update dependencies and add http_mock_adapter package

* Implement drop-in solid_lints add some tests, refactor rail(in progress)

* Remove unused parameters for underscore

* Move some constants to own file

* Add some tests, unable to link to code

* Add some tests with Google IDX ide

* Update dependencies and remove unused code
  • Loading branch information
hectorAguero authored May 1, 2024
1 parent f1fdb5f commit c03c2f8
Show file tree
Hide file tree
Showing 116 changed files with 3,606 additions and 1,497 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Run Tests
on: [push, workflow_dispatch]
jobs:
drive:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: beta
cache: true

- run: flutter test
3 changes: 3 additions & 0 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
channel: beta
cache: true

- name: Run Tests
run: flutter test

- name: Install dependencies
run: flutter pub get

Expand Down
41 changes: 41 additions & 0 deletions .idx/dev.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{pkgs}: {
channel = "stable-23.11";
packages = [
pkgs.nodePackages.firebase-tools
pkgs.jdk17
pkgs.unzip
];
idx.extensions = [

];
idx.previews = {
previews = {
web = {
command = [
"flutter"
"run"
"--machine"
"-d"
"web-server"
"--web-hostname"
"0.0.0.0"
"--web-port"
"$PORT"
];
manager = "flutter";
};
android = {
command = [
"flutter"
"run"
"--machine"
"-d"
"android"
"-d"
"emulator-5554"
];
manager = "flutter";
};
};
};
}
25 changes: 5 additions & 20 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,11 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
# include: package:very_good_analysis/analysis_options.yaml
include: package:solid_lints/analysis_options.yaml

# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:very_good_analysis/analysis_options.yaml

linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at https://dart.dev/lints.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
public_member_api_docs: false
sort_constructors_first: false
use_setters_to_change_properties: false
one_member_abstracts: false
always_use_package_imports: false
Expand All @@ -31,4 +15,5 @@ analyzer:
plugins:
- custom_lint
exclude:
- 'lib/l10n/*.dart'
- member_ordering: false
- 'lib/l10n/*.dart'
Loading

0 comments on commit c03c2f8

Please sign in to comment.