AdGoBye / AdGoBye

Content / Adblock for Social VR
MIT License
89 stars 5 forks source link

Look into creating tests for AdGoBye #83

Open regalialong opened 5 months ago

regalialong commented 5 months ago

AdGoBye has grown sufficiently large enough that we could really use some form of testing to make sure that behavior doesn't unintentionally change.

Smaller functions might be easy but some code might turn out being really coupled and painful to test, we'll have to see how far we can get without needing to refactor it.

We also cannot use real bundles for multiple reasons, which means we'll have to make something that constructs synthetic ones for testing. That'll require a good amount of R&D and might be worth splitting off into its own tool.

Resources: https://www.jetbrains.com/help/rider/Getting_Started_with_Unit_Testing.html https://learn.microsoft.com/en-us/visualstudio/test/unit-test-basics?view=vs-2022

regalialong commented 4 months ago

I took a peek and I'm pretty sure we have little items we can actually test, everything is coupled in some way or another and there are little if none one off public functions we can test.

Pretty unfortunate but that's what I reap from my mostly static approach.