diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2034f049..ec2e56e4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -92,6 +92,9 @@ jobs: make ${{ matrix.platform }}-prepare tree + - name: Test + run: flutter test + - name: Setup Android Signing Properties if: startsWith(matrix.platform,'android') run: | diff --git a/test/core/utils/ip_utils_test.dart b/test/core/utils/ip_utils_test.dart index d0211d5f..86d60ef7 100644 --- a/test/core/utils/ip_utils_test.dart +++ b/test/core/utils/ip_utils_test.dart @@ -6,7 +6,7 @@ void main() { "obscureIp", () { test( - "Should pass given valid IPV4", + "Should obscure parts of ipv4", () { const ipv4 = "1.1.1.1"; final obscured = obscureIp(ipv4); @@ -15,7 +15,7 @@ void main() { ); test( - "Should pass given valid full IPV6", + "Should obscure parts of full ipv6", () { const ipv6 = "FEDC:BA98:7654:3210:FEDC:BA98:7654:3210"; final obscured = obscureIp(ipv6); @@ -24,7 +24,7 @@ void main() { ); test( - "Should pass given valid IPV6", + "Should obscure parts of ipv6", () { const ipv6 = "::1"; final obscured = obscureIp(ipv6); diff --git a/test/features/profile/data/profile_parser_test.dart b/test/features/profile/data/profile_parser_test.dart index f0207391..26ec4d96 100644 --- a/test/features/profile/data/profile_parser_test.dart +++ b/test/features/profile/data/profile_parser_test.dart @@ -12,7 +12,7 @@ void main() { "parse", () { test( - "url with file extension, no headers", + "Should use filename in url with no headers and fragment", () { final profile = ProfileParser.parse(validBaseUrl, {}); @@ -24,7 +24,7 @@ void main() { ); test( - "url with url, no headers", + "Should use fragment in url with no headers", () { final profile = ProfileParser.parse(validExtendedUrl, {}); @@ -36,7 +36,7 @@ void main() { ); test( - "with base64 profile-title header", + "Should use base64 title in headers", () { final headers = >{ "profile-title": ["base64:ZXhhbXBsZVRpdGxl"], @@ -72,7 +72,7 @@ void main() { ); test( - "with infinite traffic and time", + "Should use infinite when given 0 for subscription properties", () { final headers = >{ "profile-title": ["title"],