Skip to content

Ask HN: How to generate test data for Integration Testing?

2 pointsroyalghostdiscuss
On HN

One of the major challenges of creating automated Testing is to create all dependencies in order to execute the test. I am talking this in Java for a fairly older applications, but I believe this still applies to newer app as well.

I am looking for some testing framework/libraries, where after configuring the dependency graph, it should create all the dependent objects and be able to execute the test. For e.g. Let's say, the following is the dependency graph and I want to execute the method in A :

A <-- B <-- C

Then the library is smart enough to create all dependencies in the database and execute the test. It would be even better, if I can set the number of instances to create etc.

Here are the few resources I found helpful:

1. https://stackoverflow.com/questions/591892/tools-for-generating-mock-data

2. https://github.com/Devskiller/jfairy

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.