T
TBD•13mo ago
ALR

Test Strategy for Examples

Oh awesome! Let's break off a thread here on testing and see how far we get - maybe we don't need a call. And I'll read through the Slack link; thanks!
14 Replies
ALR
ALR•13mo ago
Threading. 🙂
Unknown User
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
ALR
ALR•13mo ago
That's awesome! Yep @dayhaysoos-tbd had set up a unified pnpm test script to run tests across all code snippits, site stuff, examples, etc. There's also subcommands to only run tests for a particular module. So if the examples all plug into that with tests, when we do an upgrade or make other changes - we'll always know if something broke and we need to update stuff to match. 🙂 It's pretty slick; before we had that set up, it was all manual (big yikes) 😄
Unknown User
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
ALR
ALR•13mo ago
No worries @AceKYD we can continue this async! That's another great thing to talk about - the unified web5 dependency and whether the examples should remain versioned alongside the site. Nick also did work to set the single dependency declaration on Web5 so it was "one and done" for upgrades - that simplified things a lot for us, but you may have some other reasons for why they should be separate so when you're back on working hours let's talk those through
Unknown User
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
ALR
ALR•13mo ago
From Weekly Summary call today, @blackgirlbytes is gonna set a session for us on this to sort it out! Thanks Rizel!
Unknown User
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
ALR
ALR•13mo ago
Great talk! Outcome as I heard it from this: 1) We’ll set up testing for all the examples to run as part of pnpm test in the monorepo. Make sure each example is using the same Web5 version that’s declared in the monorepo root. This will unblock us from releasing a new Web5 version because it’ll let us know during an upgrade what test starts to fail. 2) Set up docs in the README to show how to run each example via a script like pnpm run-example exampleName. This will prove that a dev can git clone the monorepo and run examples from the CLI - the lowest common denominator use case. And then CodeSandox is a convenience layer above that. Sound about right?
Unknown User
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
ALR
ALR•13mo ago
Nope - didn't give up on it. Evaluating the doc'd use case and can split off examples as next step @frankhinek - Do you have a rough ETA for new Web5 drop? Team here including @blackgirlbytes and @AceKYD are pumping up tests for the new examples and we want to be sure we're ready for a new release. Guide to kick off a new release is here, triggered by a single GitHub issue template which outlines the steps taken to publish.
Unknown User
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
ALR
ALR•13mo ago
Coincidentally I just got off a call with the folks at Hyphen / Kin who are integrating Web5 into React Native and interested in contributing to that work.
Unknown User
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server