junit - Unit tests with different severity -


i'm testing set of classes , unit tests far along lines

1. read in data file x 2. create new object y 3. sanity assert basic properties of y 4. assert advanced properties of y 

there's 30 of these tests, differ in input/properties of y can checked. however, @ current project state, crashes @ #2 or fails @ #3. should never crash @ #1. time being, i'm accepting failures @ #4.

i'd e.g. see list of unit tests fail @ #3, far ignore fail @ #4. what's standard approach/terminology create this? i'm using junit java eclipse.

you need reporting/filtering on unit test results.

junit wants tests pass, fail, or not run - nothing in between.

however, doesn't care how results tied passing/failing build, or reported. using tools maven (surefire execution plugin) , custom code, can categorize tests distinguish between 'hard failures', 'bad, let's go on', etc. that's build validation or reporting based on test results rather testing.

(currently, our build process relies on annotations such @category(workinprogress.class) each test method decide what's critical , what's not).


Comments

Popular posts from this blog

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

ruby on rails - Authlogic - how to make a registration and don't log in the new account? -