add: adding dummy test to certain packages to enable ci/cd
This commit is contained in:
parent
4af5bb16c1
commit
250ae606a1
5 changed files with 60 additions and 1 deletions
|
@ -7,4 +7,5 @@ repository: https://git.protevus.com/protevus/platform/src/branch/main/packages/
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=3.3.0 <4.0.0'
|
sdk: '>=3.3.0 <4.0.0'
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
lints: ^4.0.0
|
lints: ^4.0.0
|
||||||
|
test: ^1.24.0
|
19
packages/exceptions/test/dummy_test.dart
Normal file
19
packages/exceptions/test/dummy_test.dart
Normal file
|
@ -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'));
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
19
packages/mocking/test/dummy_test.dart
Normal file
19
packages/mocking/test/dummy_test.dart
Normal file
|
@ -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'));
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
|
@ -8,3 +8,4 @@ environment:
|
||||||
sdk: '>=3.3.0 <4.0.0'
|
sdk: '>=3.3.0 <4.0.0'
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
lints: ^4.0.0
|
lints: ^4.0.0
|
||||||
|
test: ^1.24.0
|
||||||
|
|
19
packages/model/test/dummy_test.dart
Normal file
19
packages/model/test/dummy_test.dart
Normal file
|
@ -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'));
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
Loading…
Reference in a new issue