diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 12dca6b1..456c715a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -35,4 +35,7 @@ jobs: - run: flutter pub get - run: cp lib/dummy_dsn.dart lib/dsn.dart - run: flutter analyze - - run: flutter test --coverage + - name: Run Unit Tests + run: | + flutter test --coverage + coveralls \ No newline at end of file diff --git a/test/api_test.dart b/test/api_test.dart index 36baa7fc..5f24f897 100644 --- a/test/api_test.dart +++ b/test/api_test.dart @@ -2,18 +2,14 @@ * Unit tests for the API class */ -import 'package:test/test.dart'; - -import 'package:inventree/api.dart'; -import 'package:inventree/user_profile.dart'; +import "package:test/test.dart"; +import "package:inventree/user_profile.dart"; void main() { setUp(() async { // Ensure we have a user profile available // This profile will match the dockerized InvenTree setup, running locally - - print("Creating user profile"); await UserProfileDBManager().addProfile(UserProfile( username: "testuser", password: "testpassword""",