Author Topic: I am so smart, S.M.R.T.  (Read 1746 times)

hans

  • Guitar Addict
  • Jackass In Charge
  • Posts: 3523
  • Karma: +46/-18
I am so smart, S.M.R.T.
« on: February 18, 2008, 05:47:40 PM »
I'm working on a new project at work and in the process of needing test data. I moving from SQL inserts to more of integration test inputs. I need to be consistent so the same test data is available each time we want to do testing, to keep everybody in sync and make life easier.

As I was writing my data insert suite, I remembered a concept from my old game programming days of using the psuedo-random generator to build much larger realities. So at the start of my test data suit I simply seed the generator and voila!, same data sets each time without having to manually create a bunch of data. All I have to do is include the random generator in my creating methods.
This signature intentionally left blank.