Commit graph

15 commits

Author SHA1 Message Date
Hocuri
616f05e60e
Add regression test 2023-10-23 15:47:22 +02:00
adbenitez
d125e0d8be remove unused variables and @SuppressWarnings("unused") annotations 2023-10-07 16:28:26 +02:00
adbenitez
2ad6186ea3 make fields final 2023-09-30 22:45:07 +02:00
adbenitez
39de85ef6e remove unused imports 2023-09-30 22:28:43 +02:00
Hocuri
0e27d445ee
Rework how activities interact when forwarding/sharing (#2549) 2023-05-02 10:34:31 +02:00
Hocuri
d1b3124ab0
Don't animate the spinning circle if animations are disabled (#2338) 2022-11-24 12:34:57 +01:00
Hocuri
6e98b8a96d Fix onboarding test 2022-07-09 14:02:14 +02:00
Hocuri
724dc43970
Small benchmark improvements (#2264) 2022-04-07 21:30:01 +02:00
Hocuri
24e82f6f35
Create enterFilledChat and createAndEnterEmptyChats benchmarks (#2247) 2022-03-30 09:53:37 +02:00
Hocuri
c4b3fb9d80 Add a UI test 2022-03-26 13:01:26 +01:00
Hocuri
dfb13ca7a4
Don't let the doze dialog make the tests fail 2021-10-04 16:03:19 +02:00
Hocuri
925fec13b2
Move tests to separate packages so that I can e.g. run all offline tests 2021-10-04 16:03:19 +02:00
Hocuri
2c6f849676
Add failing test 2021-10-04 16:02:44 +02:00
Hocuri
a2ffa4cd5a
Add very basic onboarding and sharing test (#2031)
* Start creating onboarding test

* Start adding sharing test

* Create very basic sharing test
2021-10-04 15:58:07 +02:00
Hocuri
f7b74e4963
Add simple benchmark & a test framework (#2022)
See #2019, #2020 and #2021 for failed attempts at using a benchmark framework. So, for now I'll just go with timing the results manually. 

For trying this out:
- Backup your current account first, maybe there are some bugs in switching accounts.
- You can run benchmarks on either an emulated device or a real device. For better benchmark results, you should run the benchmark on a real device and make sure that the core is compiled in release mode.
- Disable animations on your device, otherwise the test may fail. (Developer options -> Window animation scale, Transition animation scale & Animatior duration scale -> set all three of them to 0x)
- In Android Studio: File -> Sync project with gradle files
- In Android Studio: Run -> Edit configurations -> `+` -> Android Instrumented test -> Either select a specific class or select "All in Module" -> OK -> Select your configuration in the toolbar -> Click on the green "run" button in the toolbar to run the tests

When the benchmark is done, you will get a result like `MEASURED RESULTS (Benchmark) - Going thorough all 10 chats: 11635,11207,11363,11352,11279,11183,11137,11145,11032,11057`, Paste `11635,11207,11363,11352,11279,11183,11137,11145,11032,11057` into a cell in a LibreOffice spreadsheet, do `Data -> Text to columns`, choose `,` as a separator, hit `OK`, and create a diagram.
2021-08-11 14:01:15 +02:00