سؤال

I am facing the following problems while trying to use the Spock framework

  1. Forced to inherit from Specification , is there any way to use annotations instead ?
  2. Cannot execute individual tests , only option I found from internet is @IgnoreRest annotation, is there any other way to do it ?
هل كانت مفيدة؟

المحلول

ad 1. There is no way around inheriting directly or indirectly from Specification (for good reason). ad 2. It depends on whether the environment that you are executing tests in (IDE, build tool) allows to execute individual (JUnit) tests.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top