ufosc / OSC-Proximity-Chat-App

Talk to the people closest to you. An open source React Native app that combines location and communication into one.
https://osc-proximity-documentation.vercel.app/
GNU General Public License v3.0
43 stars 102 forks source link

Create test suite to check message communication boundaries #306

Open h1divp opened 1 month ago

h1divp commented 1 month ago

With recent updates to the formulas used to gather the correct distances from a user to a stored message or geolocation, we need to make sure that this is properly tested. This will also be useful for any future updates to our algorithms used for distance checking and nearby message retrieval. Make sure to use Jest for this, but if you have a better framework or proposal then please message a tech lead.

  1. Test coordinates that should be within the bounds of a message retrieval radius, to see if the message is actually received by a client.
  2. Test coordinates outside of this radius to make sure that these messages are not received.

Playing with obscure coordinates, large and small distances with different radii, etc are all welcome. We want to test this as thoroughly as possible.

Refer to previously made test code for a starting point. Please make sure to refer to this issue number when creating a PR.

aaditkamat commented 1 month ago

Can I work on this?