Skip to content

Commit

Permalink
Merge pull request #41 from guyluz11/dev
Browse files Browse the repository at this point in the history
Added basic passing test only for retrieving test git action
  • Loading branch information
git-elliot authored Aug 22, 2022
2 parents 5637e40 + acd3ef0 commit a1e899a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/flutter-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
run: flutter pub get
- name: Run build_runner
run: flutter pub run build_runner build --delete-conflicting-outputs
# - name: Run analyzer
# run: flutter analyze
# - name: Run tests
# run: flutter test
# - name: Run analyzer
# run: flutter analyze
- name: Run tests
run: flutter test
- name: Download Android keystore
id: android_keystore
uses: timheuer/[email protected]
Expand Down
19 changes: 2 additions & 17 deletions test/widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,10 @@
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.

import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:vernet/main.dart';

void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(const MyApp(false));

// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);
expect(find.text('1'), findsNothing);

// Tap the '+' icon and trigger a frame.
await tester.tap(find.byIcon(Icons.add));
await tester.pump();

// Verify that our counter has incremented.
expect(find.text('0'), findsNothing);
expect(find.text('1'), findsOneWidget);
testWidgets('Test for testing', (WidgetTester tester) async {
expect(1, 1);
});
}

0 comments on commit a1e899a

Please sign in to comment.