Urgent.News

What's breaking now, across thousands of outlets.

Tech

The seed-script tax: how I generate realistic test data for Postgres, Playwright and mock APIs

Two years ago I gave a demo to a prospective client. The dashboard looked great until I scrolled the customer table and the room got to enjoy asdf asdf , Test User 1 , Test User 2 and a support ticket from aaa@aaa.com . Nobody said anything. They didn't have to. That's the moment I started taking test data seriously, and it turned into a small tool I now use on every project. I'll explain the…

Two years ago, a demo presentation went awry when the test data displayed placeholder names like "Test User 1" and "Test User 2" instead of realistic entries. This experience prompted the speaker to develop a tool for generating realistic test data, which they now use on every project. The tool is called fundata.dev, and the speaker emphasizes its importance in ensuring test data is reliable and doesn't introduce bugs. The key points are:

1. The existing test data generation methods are flawed, as they often result in uniform data that fails to uncover bugs and becomes outdated over time.

2. The desired characteristics of test data include reproducibility, format compatibility, privacy protection, and ease of use across various tools and platforms.

3. The workflow for creating test data involves seeding a local database, generating fixtures for Playwright and Cypress, providing data to mock APIs, and preparing demos, spreadsheets, and screenshots.

4. The speaker emphasizes the need for safe values in test data, such as reserved email domains, test credit card numbers, and non-routable IBANs, to avoid accidental real-world interactions.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

CVE-2026-69112: Hugging Face Accelerate Path Traversal Lets Attackers Read Arbitrary Files

Originally published at HOL CVE-2026-69112: Hugging Face Accelerate Path Traversal Lets Attackers Read Arbitrary Files from Checkpoint Indexes TL;DR: Hugging Face Accelerate through version 1.14.0…

  • CVE-2026-69112 vulnerability allows attackers to read arbitrary files.
  • Attackers manipulate weightmap entries in index files for path traversal.
  • Users should validate checkpoint index files to prevent unauthorized access.

Build a Crypto Position-Risk Calculator in JavaScript

AI disclosure: This article was prepared with AI assistance from my real trading notes, calculations, and review. The code and examples were checked before publication.

  • JavaScript calculator estimates crypto position risk
  • Factors include quantity, prices, leverage, fees, slippage
  • calculatePositionRisk function computes key metrics

More from Monday 31 August →