java - Tell Eclipse to skip tests -


is there way tell eclipse skip various individual junit tests (but still run rest of them)? familiar @ignore annotation, not looking because cause tests always skipped.

i tests skipped when ran eclipse (run -> junit test) ran in other context, during maven build.

any ideas?

so far following solution has worked well. not complete solution because causes tests ran maven when maven invoked command line. though, works.

when maven invoked, maven command line arguments placed in environment map (system.getenv()). when tests run through junit in eclipse, there no entry in system.getenv() maven command line arguments. so, using junits assume class check property not null tests want eclipse skip.

code:

assume.assumenotnull(system.getenv("maven_cmd_line_args")); 

fyi, 1 downside of solution eclipse marks tests passed instead of skipped.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -