2008/7/29 Vadim Chekan <[EMAIL PROTECTED]>: > Hi all, > > In xmpp component there is a test which will execute only if there is a > property defined "xmpp.enable". > Questions: does "official" junit check have this property defined? > Is there any list of properties which need to be defined to cover all test > cases in all components? > Is it a good idea to silently suppress some test cases?
Its really the difference between a unit test and an integration test; for the xmpp.enable to be able to run, the local machine must have an XMPP server running. In TestNG its much easier to classify tests as being system tests rather than unit tests. Other than using some system properties, I've never seen a clean way of solving this issue with JUnit - other than maybe moving the test out to a separate system testing module (thats not included in the build by default). Maybe we could use a Maven profile instead? So we name the tests in a certain way so that they are only ran if a 'system test' profile is used? -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://open.iona.com