-
Notifications
You must be signed in to change notification settings - Fork 4
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
base: main
Are you sure you want to change the base?
Setup Testing #1207
Conversation
The changes here look amazing, @jigar-f!!! Sorry I haven't had a chance to take a closer look at this one yet, but I will do that first thing in the morning |
@atavism I updated PR description to help to run the test across all devices, do take a look |
I'm not sure if you've run into the same issue, but I've been unable to run the tests on Android: * Where:
Build file '/Users/paul/go/src/github.com/getlantern/lantern-client/android/build.gradle' line: 88
* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
> Failed to calculate the value of task ':app:compileProdDebugJavaWithJavac' property 'javaCompiler'.
> Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=17, vendor=any vendor, implementation=vendor-specific} for MAC_OS on aarch64.
> No locally installed toolchains match and toolchain download repositories have not been configured. This happens running a single test with "make runTest integration_test/features/account/account_flow_test.dart" I pushed some changes that fix the issue for me (upgrading Kotlin and the gradle wrapper): atavism/setup-test-suite Are the workflow tests working when we build for Android in CI? I noticed the latest is failing because of this:
Finally, I tried uncommenting and running the app startup test work on macOS with patrol. Here's the results of that:
|
@atavism I fixed the issue with that. Now, you should be able to run it Also, do not use Patrol directly for desktops (I had to do a lot of workarounds); use All CI are now passing. there was few issue with go tests. |
Take a look at readme, I have added a lot more info on that. |
Ohhh, it's working perfectly now @jigar-f! Thanks. I was just able to run the app startup test |
@atavism This is ready for review/ |
Also now we are running tets on windows as well. |
@atavism Did you get chance to take look at this one? |
Overview of This PR:
Initial Test Environment Setup-:Establishes the foundation for testing across the app.
Reusable Widget Testing Structure-: Creates a framework that can be reused for widget tests in future test cases.
Upcoming Work:
Test Updates
List of app workflow test
Run Tests
To run Single test cases use this will work with widget and integration test
make runTest testfileName
To run all integration/app workflow tests use
make appWorkflowTest
To run all desktop test
make desktopWorkflowTest
To run a single test on a desktop
make runDesktopTest testfileName