bestinslot-xyz / OPI

Open Protocol Indexer, OPI, is the best-in-slot open-source indexing client for meta-protocols on Bitcoin.
Apache License 2.0
202 stars 110 forks source link

Adding support for regtest and writing unit tests #7

Closed hwnprsd closed 9 months ago

hwnprsd commented 9 months ago

Some minor changes to the indexer can support regtest, and that can be used to do some unit testing before the release of any new version. Is this something in the backlog already? Happy to support

samedcildir commented 9 months ago

Yes we'll definitely support regtest/testnet etc. it's in our backlog and will probably be released next week.

For testing, unit tests would be great but we already make a full index from scratch before every release and check the results which already includes a lot of the possible unit tests since users sent all kinds of different transaction types / combinations already.

hwnprsd commented 9 months ago

Unit tests can make merging PRs much easier, once when all the bull market developers start showing up

samedcildir commented 9 months ago

Will definitely add to the todo list, any help is appreciated though

samedcildir commented 9 months ago

added NETWORK_TYPE selection via .env 👍