testing - JUnit - Rerun Tests in same order through Eclipse -
i able re-run group of unit tests in same order run.
yes, understand running test in random order better in general, because uncover bugs may covered in 1 particular test ordering.
however, once find bug based on test order extremely useful re-run tests in same order on , on can debug. there anyway through eclipse/junit?
junit not guarantee order running mentioned yourself. can build dependencies when write test function calls other test-methods methods should not annotated. run tests in same order, couldn't test them seperately.
another approach use testframeworks enables dependancy-management. therefore have @ testng (another java test-framework) or jexample (builds on junit visit http://www.iam.unibe.ch/~akuhn/blog/2008/jexample-quickstart/ short introduction)
Comments
Post a Comment