mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,5 Tsd.
aktive Profile

#testdriven

0 Beiträge0 Beteiligte0 Beiträge heute

i came across tests that are generated and run using a makefile.

to me this seems very straightforward compared to generate tests or testfiles using a build.rs or a macro.

how do you run generated tests?

#tdd#rust#make
Fortgeführter Thread

You like these kinda hands 🙌 on 🔛 workshops?

➡️ 👀 Come and see me at the c't<webdev> in Cologne in November ctwebdev.de/sessions24/javascr

➡️ 💰💰💰Book me 👋🏽 as a consultant or freelancer to help with 1️⃣ challenges, 2️⃣ or 3️⃣ 💰💰💰

2/2

ctwebdev.deJavaScript the Language: Diving Deep in a Test-Driven Way - c't <webdev>In June 2024, we held the 73rd edition of the "JavaScript the Language" meetup, where each month we dive into one of JavaScript's features, some make you go, "Wait, it does what now?" We do this by writing tests, reading the specification, and running those tests – the programming equivalent of a workout that actually makes you stronger. Here's the plan: We start by brainstorming questions we can answer with code. Then, we write a test with a description so clear even your non-coding goldfish could follow it. Before we run this test, we open the ECMAScript specification, which is like the sacred scrolls of JavaScript knowledge, to see if our wild guess—I mean, hypothesis—is correct. For example, does `"".at(-1)` return an empty string or undefined? (Spoiler alert: It's a fun surprise every time!) This deep dive often leads us into the labyrinth of JavaScript's inner workings, where we encounter delightful oddities and brilliant design choices. By the time we run the test, we've either confirmed our theory or had an existential crisis about how computers work, which we then call "learning". Join me in this session to experience the joy of team programming, the thrill of testing, and the sheer geeky pleasure of reading the spec. Even if you currently think testing is as exciting as watching paint dry, I promise you'll leave with a newfound appreciation for it—or at least a few good laughs. Let's embark on this adventure together and unlock the mysteries of how JavaScript ticks, one test at a time.