Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Testing #1207

Open
wants to merge 147 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
1336acd
Setup test suite
jigar-f Oct 4, 2024
bfe7a28
Implement dependency injection for model setup
jigar-f Oct 7, 2024
a6a298a
Start adding test cases for home.
jigar-f Oct 7, 2024
07bd393
Added home test cases for IOS.
jigar-f Oct 9, 2024
c35c821
started adding test cases for vpn tap.
jigar-f Oct 9, 2024
d133b89
Merge branch 'main' into jigar/setup-test-suite
jigar-f Oct 10, 2024
2194b7d
Added test for vpn tap.
jigar-f Oct 10, 2024
01054b3
Create reuseable method.
jigar-f Oct 10, 2024
14f0075
Added test for vpn tap and start setting up patrol.
jigar-f Oct 10, 2024
88f1d35
added patrol for android and start adding some basic test for integra…
jigar-f Oct 14, 2024
6239185
add more test for app.dart.
jigar-f Oct 15, 2024
9b512f2
more test changes.
jigar-f Oct 16, 2024
05b37ab
Mock home test
jigar-f Oct 16, 2024
b54d027
Merge branch 'main' into jigar/setup-test-suite
jigar-f Oct 17, 2024
4eb1775
Routing without context and some other test cases fixes.
jigar-f Oct 18, 2024
95aea94
Added test case for VPN tap.
jigar-f Oct 18, 2024
16461ad
Fix android session model issue.
jigar-f Oct 18, 2024
1a1cd49
Added macos setup and vpn tap test for dekstop.
jigar-f Oct 18, 2024
2006a5e
More stuff
jigar-f Oct 23, 2024
fa6111b
Update homepage_flow_mock_test.dart
jigar-f Oct 23, 2024
63d6a49
Update .gitignore
jigar-f Oct 23, 2024
cfe0bee
test improvements.
jigar-f Oct 23, 2024
9f66bf9
Implemented account flow test
jigar-f Oct 24, 2024
1c07351
Updated account flow test cases to support desktop
jigar-f Oct 24, 2024
cc61496
Setting flow, report issue flow test cases.
jigar-f Oct 25, 2024
30e5a6c
language flow test cases.
jigar-f Oct 25, 2024
7822fb1
Merge branch 'main' into jigar/setup-test-suite
jigar-f Oct 25, 2024
2e52056
Update language_flow_test.dart
jigar-f Oct 25, 2024
e538df1
Script for running all test as single in macos.
jigar-f Oct 28, 2024
3560a8d
More changes.
jigar-f Oct 28, 2024
cd7953e
Remove prints and fix android test issue.
jigar-f Oct 29, 2024
4a296b9
Fix issue while running android.
jigar-f Oct 29, 2024
1003f52
merge latest
atavism Nov 8, 2024
83b6948
Merge branch 'main' into jigar/setup-test-suite
jigar-f Nov 18, 2024
f209be3
More chanegs
jigar-f Nov 20, 2024
2f999b7
Remove some utils methods.
jigar-f Nov 20, 2024
d5c36eb
support test cases for pro users.
jigar-f Nov 21, 2024
87dcda5
update readme
jigar-f Nov 21, 2024
299b656
Add script for firebase test labs and updates readme.
jigar-f Nov 22, 2024
58482b0
Update README.md
jigar-f Nov 22, 2024
c8c88af
Fix widget test for dekstop.
jigar-f Nov 22, 2024
2576285
Update widget test case to use patrol.
jigar-f Nov 25, 2024
d760017
Added github action for running tests.
jigar-f Nov 25, 2024
d33ef89
update test action.
jigar-f Nov 25, 2024
ccf5452
generate libraries on github action.
jigar-f Nov 25, 2024
a9e34e9
update actions.
jigar-f Nov 25, 2024
ebeb5f8
Update test.yml
jigar-f Nov 25, 2024
5cce3dd
try to fix desktop test
jigar-f Nov 25, 2024
fcdba5b
Debug issue.
jigar-f Nov 25, 2024
1b0fcc5
Update test.yml
jigar-f Nov 25, 2024
bfb7927
Update test.yml
jigar-f Nov 26, 2024
b80930f
Update test.yml
jigar-f Nov 26, 2024
450c075
added verbose.
jigar-f Nov 26, 2024
231a65a
fix command.
jigar-f Nov 26, 2024
ae9a851
more CI changes.
jigar-f Nov 26, 2024
7405865
CI changes.
jigar-f Nov 26, 2024
87cfdd4
timeout changes.
jigar-f Nov 26, 2024
47f4b3e
Trial and error.
jigar-f Nov 26, 2024
d1fdcc8
added verbose flag.
jigar-f Nov 26, 2024
9278ccd
Merge branch 'main' into jigar/setup-test-suite
jigar-f Nov 26, 2024
a247fa4
added logs.
jigar-f Nov 26, 2024
b510d6b
Update Makefile
jigar-f Nov 26, 2024
017d53c
Update main.dart
jigar-f Nov 26, 2024
c1b07e5
Increase timeouts.
jigar-f Nov 26, 2024
ea704bc
Added more logs.
jigar-f Nov 26, 2024
e3fe207
more CI logs.
jigar-f Nov 26, 2024
986d1d7
Make more changes.
jigar-f Nov 26, 2024
2bb1348
Update Release.entitlements
jigar-f Nov 26, 2024
114db2f
Revert "Update Release.entitlements"
jigar-f Nov 26, 2024
ea62f3b
Revert "Make more changes."
jigar-f Nov 26, 2024
d0d5a1d
Revert "more CI logs."
jigar-f Nov 26, 2024
416844b
Revert "Added more logs."
jigar-f Nov 26, 2024
00c3e92
Revert "Increase timeouts."
jigar-f Nov 26, 2024
9c87d9f
Revert "Update main.dart"
jigar-f Nov 26, 2024
4a19dc4
Revert "Update Makefile"
jigar-f Nov 26, 2024
abce26c
Revert "added logs."
jigar-f Nov 26, 2024
68ad01c
Update main.dart
jigar-f Nov 26, 2024
49f2e8e
Update test.yml
jigar-f Nov 26, 2024
7712624
change startup sequence.
jigar-f Nov 26, 2024
585c40f
run job on linux
jigar-f Nov 26, 2024
eed855d
Update test.yml
jigar-f Nov 26, 2024
a4b5dda
update Linux CI.
jigar-f Nov 26, 2024
818eb35
Update test.yml
jigar-f Nov 26, 2024
ce87cdd
Update test.yml
jigar-f Nov 26, 2024
c3ebf90
Update test.yml
jigar-f Nov 26, 2024
b98cfcc
Update test.yml
jigar-f Nov 26, 2024
c8f256a
update parol cli guard.
jigar-f Nov 26, 2024
50d0609
update firebase test labs script.
jigar-f Nov 26, 2024
4b9ce8b
Use macos runner.
jigar-f Nov 26, 2024
1e16c9b
Update test.yml
jigar-f Nov 26, 2024
c383676
Update Release.entitlements
jigar-f Nov 27, 2024
d74ef6a
Update humanize_test.dart
jigar-f Nov 27, 2024
bb01e56
Fix date test case
jigar-f Nov 27, 2024
574afa8
Update test.yml
jigar-f Nov 27, 2024
5fa2153
Update lantern_ffi_service.dart
jigar-f Nov 27, 2024
93c9733
added logs in ffi.
jigar-f Nov 27, 2024
2600523
Added ls tag in github CI.
jigar-f Nov 27, 2024
444744e
Update run_test.sh
jigar-f Nov 27, 2024
70984d8
FIx LS issue.
jigar-f Nov 27, 2024
1ee3dec
use intel bases ci.
jigar-f Nov 27, 2024
385ab69
Use ubuntu-latest
jigar-f Nov 27, 2024
7562591
Added gcloud config
jigar-f Nov 27, 2024
75cd560
Move the android test.
jigar-f Nov 27, 2024
22ead95
update test labs script.
jigar-f Nov 27, 2024
e6f9832
cleanup disk space before running macos test
jigar-f Nov 28, 2024
ced66dc
clean up more space.
jigar-f Nov 28, 2024
439276f
Upgrade patrol
jigar-f Nov 28, 2024
ce735c9
Update homepage_flow_mock_test.dart
jigar-f Nov 28, 2024
0e596db
Update account_flow_test.dart
jigar-f Nov 28, 2024
aa8594a
Update account test case.
jigar-f Nov 28, 2024
87f49c1
Remove logs.
jigar-f Nov 28, 2024
0523cdd
Fix user create sequence.
jigar-f Nov 28, 2024
2b8c4a6
update sentry flutter.
jigar-f Nov 28, 2024
0e30b71
Revert "update sentry flutter."
jigar-f Nov 28, 2024
fd6d54f
added try catch
jigar-f Nov 28, 2024
593b64c
update device list.
jigar-f Nov 28, 2024
e285fe1
update test
jigar-f Nov 28, 2024
7c6cf70
enable CGO
jigar-f Nov 29, 2024
f3d1561
Hide widget test for now.
jigar-f Nov 29, 2024
dac7c73
Update test.yml
jigar-f Nov 29, 2024
dca9956
Merge branch 'main' into jigar/setup-test-suite
jigar-f Nov 29, 2024
e4335dd
add disk space check.
jigar-f Nov 29, 2024
6510903
update runner.
jigar-f Nov 29, 2024
3b90482
Update test.yml
jigar-f Nov 29, 2024
49bbb16
downgrade patrol
jigar-f Nov 29, 2024
6802bef
update some settings.
jigar-f Nov 29, 2024
e9f7344
Update MainActivityTest.java
jigar-f Nov 29, 2024
ce26a18
update runner to 16 core.
jigar-f Nov 29, 2024
dc9bf96
Update build.gradle
jigar-f Nov 29, 2024
54d7681
Update app_startup_flow_test.dart
jigar-f Nov 29, 2024
dd6bd79
added flaky-test-attempts
jigar-f Nov 29, 2024
5ef7e76
Hide app start up test
jigar-f Nov 29, 2024
a48278a
added concurrency and some other changes.
jigar-f Nov 29, 2024
891a066
Merge remote-tracking branch 'origin/main' into jigar/setup-test-suite
atavism Dec 2, 2024
226b177
Merge latest code.
jigar-f Dec 2, 2024
0f7a5c7
Added windows script.
jigar-f Dec 2, 2024
ebc6743
Fix issue with desktop test cases.
jigar-f Dec 2, 2024
3392d30
Fix go test cases issue.
jigar-f Dec 2, 2024
92f12cb
Fix UserCreate test cases go.
jigar-f Dec 2, 2024
93f45df
Update README.md
jigar-f Dec 2, 2024
d982e36
Setup test run on windows.
jigar-f Dec 3, 2024
eec3b87
Update test.yml
jigar-f Dec 3, 2024
e7032d0
Fix github CI action.
jigar-f Dec 3, 2024
de5193b
Updated Build Library step
jigar-f Dec 3, 2024
c26bdee
Try to fix windows parse error.
jigar-f Dec 3, 2024
e9d6bfa
Update test.yml
jigar-f Dec 3, 2024
63e5065
Seprate step for building lib.
jigar-f Dec 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge latest code.
  • Loading branch information
jigar-f committed Dec 2, 2024
commit 226b1770553059f9ac64ac2c9b257f8738a035b1
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -781,20 +781,25 @@ appWorkflowTest:
runTest:
@ARGUMENTS=$(filter-out $@,$(MAKECMDGOALS)); \
echo "Running tests on: $$ARGUMENTS" && \
flutter test $$ARGUMENTS --flavor=prod -r expanded
patrol test --target $$ARGUMENTS


#------- Desktop test and utils ------------

# Run all workflow tests on desktop
desktopWorkflowTest:
maOSWorkflowTest:
@echo "Running all integration tests..."
sh $(CURDIR)/integration_test/run_macos_test.sh

linuxDesktopTest:
@echo "Running all integration tests..."
sh $(CURDIR)/integration_test/run_linux_test.sh


windowsDesktopTest:
@echo "Running all integration tests..."
sh $(CURDIR)/integration_test/run_linux_test.sh

# Run specific tests on desktop
runDesktopTest:
@ARGUMENTS=$(filter-out $@,$(MAKECMDGOALS)); \
Expand All @@ -808,7 +813,6 @@ ci-android-test:test-build-android
sh $(CURDIR)/integration_test/run_android_testlabs.sh



#Runs widget tets
widget-tests:
@echo "Running widget tests..."
Expand Down
2 changes: 1 addition & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ github.com/getlantern/fdcount v0.0.0-20210503151800-5decd65b3731/go.mod h1:XZwE+
github.com/getlantern/filepersist v0.0.0-20160317154340-c5f0cd24e799/go.mod h1:8DGAx0LNUfXNnEH+fXI0s3OCBA/351kZCiz/8YSK3i8=
github.com/getlantern/filepersist v0.0.0-20210901195658-ed29a1cb0b7c h1:mcz27xtAkb1OuOLBct/uFfL1p3XxAIcFct82GbT+UZM=
github.com/getlantern/filepersist v0.0.0-20210901195658-ed29a1cb0b7c/go.mod h1:8DGAx0LNUfXNnEH+fXI0s3OCBA/351kZCiz/8YSK3i8=
github.com/getlantern/flashlight/v7 v7.6.147 h1:sF5wftnezW3kg3vn2dLpNDTHc25BhrwnHJox2zZChHo=
github.com/getlantern/flashlight/v7 v7.6.147 h1:bL20KaA+UkPzYI9uXMDJHf+gSpHJbVBV9f/8+/EwFHI=
github.com/getlantern/flashlight/v7 v7.6.147/go.mod h1:sLQXxC8MW4gqHXFjINLxbbz1GOPEf6Hwvs30gdVsAk8=
github.com/getlantern/framed v0.0.0-20190601192238-ceb6431eeede h1:yrU6Px3ZkvCsDLPryPGi6FN+2iqFPq+JeCb7EFoDBhw=
github.com/getlantern/framed v0.0.0-20190601192238-ceb6431eeede/go.mod h1:nhnoiS6DE6zfe+BaCMU4YI01UpsuiXnDqM5S8jxHuuI=
Expand Down
14 changes: 0 additions & 14 deletions integration_test/test_bundle.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion integration_test/utils/test_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ final _patrolTesterConfig = const PatrolTesterConfig(
);
final _nativeAutomatorConfig = const NativeAutomatorConfig(
findTimeout: Duration(seconds: 20),

androidAppName: 'Lantern',
packageName: 'org.getlantern.lantern',
iosAppName: 'Lantern',
bundleId: 'org.getlantern.lantern',
);

TestVariant mobileVariant() {
Expand Down
20 changes: 19 additions & 1 deletion internalsdk/mocks/Session.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions internalsdk/mocks/pro_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test/utils/stubs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ void stubSessionModel({
final builder =
invocation.positionalArguments[0] as ValueWidgetBuilder<Bandwidth>;
var usedData = Bandwidth()
..allowed = Int64(250)
..remaining = Int64(200)
..mibAllowed = Int64(250)
..mibUsed = Int64(200)
..percent = Int64(28);
return builder(mockBuildContext, bandwidth ?? usedData, null);
});
Expand Down