nostr:npub1zafcms4xya5ap9zr7xxr0jlrtrattwlesytn2s42030lzu0dwlzqpd26k5 has wanted something like that for years and I always tell him it's an impossible task.

Reply to this note

Please Login to reply.

Discussion

I think he just means a common test suite

Yes. I'm not a dev, so I'm reaching, maybe, but is it not reasonable to build test suites for the most commonly used libraries?

nostr:npub16ux4qzg4qjue95vr3q327fzata4n594c9kgh4jmeyn80v8k54nhqg6lra7 is working on a nostrCI proof of concept. More details to follow

Not impossible, fairly simple POC. Once the poc is done it's at matter of getting funding to grind out use cases. The matrix of use cases is also fairly trivial to generate.

Likely the hardest part will be the mobile testing.

Probably the idea would be to run these on nostr:nprofile1qqsthdwa5rs42euhnuz5xsrmmssr84hshwes7uj392vpeldj7z0zw3cppemhxue69uhkummn9ekx7mp0qy2hwumn8ghj7un9d3shjtnyv9kh2uewd9hj7qg3waehxw309ahx7um5wgh8w6twv5hsef7u3d's cicd DVM so anyone can trigger and pay the invoice.

These are up to date, with some known inaccuracies (and in production use)

Schema: https://github.com/sandwichfarm/nostr-watch/tree/next/libraries/schemata

TS/JS Validators: https://github.com/sandwichfarm/nostr-watch/tree/next/libraries/schemata-js-ajv

I'm confused what I'm looking at. This isn't something for testing, it's for validating data as it comes into the relay, correct

It's for validating data, in general. A huge percentage of interoperability issues between clients relates to missing tags or missing data within tags.

Validation and QA are different things tho right? Or am I thinking about this incorrectly

nostr:nprofile1qqsthdwa5rs42euhnuz5xsrmmssr84hshwes7uj392vpeldj7z0zw3cppemhxue69uhkummn9ekx7mp0qy2hwumn8ghj7un9d3shjtnyv9kh2uewd9hj7qg3waehxw309ahx7um5wgh8w6twv5hsef7u3d what are you getting at? I'm unsure how you're saying to use this for qa. Like I get it for apps to use, but I don't understand what you're saying about using this when testing clients.

Validation can be one task in the process of QA. It's not the whole thing but def important

But why? The whole point of QA is to use broken events and see how the clients react. Also, it's to use working events and see how they react. Once the test data is generated you won't really have to validate? Sorry I think I'm missing something