St Sanderson, Arinda, Stephen discussed on The 6 Figure Developer Podcast


What are you working on these days. So kate mentioned i'm a principal developer fall for delegation. And we're working primarily with asia dot net. So that's that's really nice like a to really really out on on on the latest technology around that <hes>. In my free time. I spent quite a lot of time on be units <hes>. Which started about one and a half years ago which is a place of testing framework. Well according to my wife. Lisa spend too much time on that but that's also very fun. It's like it's have your own baby and you can. You don't have customers in such as that required to deliver in a certain schedule timeframe not accurately so so i get sort of really really go deep and play and experiment on and get something right. At least i hope so. So you started on. The unit before blazer was even jessica even server side. I'm trying to think back. I started units back in february or march in two thousand nineteen. It wasn't called that it was. I had a very microsoft product name back then. It was called the race testing framework or something long. Did i buried descriptive name. But it wasn't there. Google friendly because it. Yeah all all the in that. Just rent a belgian generals from keywords. But i i watched one of steve sanderson's presentation someplace and got bit excited. I like most people did around that time. And then i started playing around with trading just creating a component library. Just trying it out. And see what i could and couldn't do with and being a big fan of tipton development. They're kind of like. I'm not smart enough not to write test for my court because it'll break very fast if i start. Factoring are miss something. So i realized there wasn't anything available to test your quote with place at that time so i sort of build something. That wasn't really you know ready for primetime at all and it works <hes>. But it had a few issues <hes>. Then around september last year. I believe steve came out with this chatting prototype. And and that's all. I sorta inc what he had their into into what became be unit and edits so he had an all things where he was able to sort of get x to the component testing and be smart about how to get the mark of the component. And that sort of basically made what i had. Something i quit. You know reasonably go out and see where you can actually use this and and from there. It's it's it's not a getting some attention and community started building around that and people started using using it for real so it's been exciting but it's it's fun challenge to sort of be be part of something like that and suddenly have people depending on you delivering a something of a reasonable quality. Okay so you. So you just mentioned that you can after borrowing some code from st sanderson and mixing that with the giardi had you can <hes>. Test the markup is generated from a component. How do you set that up. How do you actually get it to where you can use the component in the test. That's a really good question. So the first thing. I try begging way back whilst just to see if i if i knew my component and try to chest institute like you would in a regular unit test. That doesn't really work. You quickly realize because the news doesn't actually know how to produce output like stephen and the team. There have made a really good decision about having teens. Raisins of concerns between what a component is and what the fingers that renders the component and. So what you need to be able to actually verify. All lanes baked the mockup that a component producers that you need something that can take the component you want to and render it and then hand you back what else created and this is sort of what what bid unit encapsulates in in the context that you can ask to rent a component and you can pass it parameters and what you get. Back is an abstraction. I called arinda component. That object contains the instance off the component. You asked to be rented but it also contains the role model that the component producers but inside of that we use angle shop which is a shout based <hes> library with html and it's actually <hes>. Competing of huma five spec so i passed role model. We get from from from from from from basically the data shaver runtime which i'm using in the vagrant bucs twinkle shop and then it passes of that and then we have <hes>. Just the same guys. We have in the browser to query the generated which has represented in estan notes shop. So you can use your cruiser dick to all an in glaze. Actually i have sought options short hands for that. I have find find all niffer that takes us next so you can go in and in very it feels like it doesn't feel like i guess you i- testing in innocent kind of way like you have to set a lot of things up and you have to actually run that the abdication in a in a full instance and you have browser. You're automating. maybe it's hit up but it's still being automated. It's just one and completely shop and everything you winning and components shop and then you get the output and you can carry that through the english. Api

Coming up next