From 250ae606a13d8a8c0a43708e3557ac59e583b768 Mon Sep 17 00:00:00 2001 From: Patrick Stewart Date: Sun, 20 Oct 2024 14:19:20 -0700 Subject: [PATCH] add: adding dummy test to certain packages to enable ci/cd --- packages/exceptions/pubspec.yaml | 3 ++- packages/exceptions/test/dummy_test.dart | 19 +++++++++++++++++++ packages/mocking/test/dummy_test.dart | 19 +++++++++++++++++++ packages/model/pubspec.yaml | 1 + packages/model/test/dummy_test.dart | 19 +++++++++++++++++++ 5 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 packages/exceptions/test/dummy_test.dart create mode 100644 packages/mocking/test/dummy_test.dart create mode 100644 packages/model/test/dummy_test.dart diff --git a/packages/exceptions/pubspec.yaml b/packages/exceptions/pubspec.yaml index b629322..7d3df65 100644 --- a/packages/exceptions/pubspec.yaml +++ b/packages/exceptions/pubspec.yaml @@ -7,4 +7,5 @@ repository: https://git.protevus.com/protevus/platform/src/branch/main/packages/ environment: sdk: '>=3.3.0 <4.0.0' dev_dependencies: - lints: ^4.0.0 \ No newline at end of file + lints: ^4.0.0 + test: ^1.24.0 \ No newline at end of file diff --git a/packages/exceptions/test/dummy_test.dart b/packages/exceptions/test/dummy_test.dart new file mode 100644 index 0000000..b4883e3 --- /dev/null +++ b/packages/exceptions/test/dummy_test.dart @@ -0,0 +1,19 @@ +import 'package:test/test.dart'; + +void main() { + group('Dummy Test', () { + test('Always passes', () { + expect(true, isTrue); + }); + + test('Basic arithmetic', () { + expect(2 + 2, equals(4)); + }); + + test('String manipulation', () { + String testString = 'Protevus Platform'; + expect(testString.contains('Platform'), isTrue); + expect(testString.toLowerCase(), equals('protevus platform')); + }); + }); +} diff --git a/packages/mocking/test/dummy_test.dart b/packages/mocking/test/dummy_test.dart new file mode 100644 index 0000000..b4883e3 --- /dev/null +++ b/packages/mocking/test/dummy_test.dart @@ -0,0 +1,19 @@ +import 'package:test/test.dart'; + +void main() { + group('Dummy Test', () { + test('Always passes', () { + expect(true, isTrue); + }); + + test('Basic arithmetic', () { + expect(2 + 2, equals(4)); + }); + + test('String manipulation', () { + String testString = 'Protevus Platform'; + expect(testString.contains('Platform'), isTrue); + expect(testString.toLowerCase(), equals('protevus platform')); + }); + }); +} diff --git a/packages/model/pubspec.yaml b/packages/model/pubspec.yaml index 90dbd24..58a3e50 100644 --- a/packages/model/pubspec.yaml +++ b/packages/model/pubspec.yaml @@ -8,3 +8,4 @@ environment: sdk: '>=3.3.0 <4.0.0' dev_dependencies: lints: ^4.0.0 + test: ^1.24.0 diff --git a/packages/model/test/dummy_test.dart b/packages/model/test/dummy_test.dart new file mode 100644 index 0000000..b4883e3 --- /dev/null +++ b/packages/model/test/dummy_test.dart @@ -0,0 +1,19 @@ +import 'package:test/test.dart'; + +void main() { + group('Dummy Test', () { + test('Always passes', () { + expect(true, isTrue); + }); + + test('Basic arithmetic', () { + expect(2 + 2, equals(4)); + }); + + test('String manipulation', () { + String testString = 'Protevus Platform'; + expect(testString.contains('Platform'), isTrue); + expect(testString.toLowerCase(), equals('protevus platform')); + }); + }); +}