Open ewolff opened 11 years ago
+1 for fixing this.
We only support the @Test annotation and the Junit assert API in test tools. http://vert-x.github.io/dev_guide.html#integration-tests
Thanks for replying @purplefox
I appreciate that you're only supporting the @Test annotation at the moment, but are you saying that you would reject pull requests that implement @before and @after functionality as well?
Pull requests are always welcome :)
@purplefox if I implement this, I've got an open design question:
Since the test class is now a verticle and thus performs comms/io etc asynchronously any implementation of the @Before
and @After
methods need to have a way of signalling that they complete. In normal tests this is achieved by a call to VertxAsserts.testComplete()
. Would you want these methods to follow the same model?
+1 for fixing this, at least for v3 :smile:
Supporting @Rule
would be great too.
@Before and @After annotations as known from JUnit do not work @BeforeClass do work, however.
https://gist.github.com/ewolff/5894732 fails in beforeIsExecuted() https://gist.github.com/ewolff/5894741 fails in afterClass()
I am running the tests in the test-tools-tests project commit 493fa1314565173ecac2ed8fb5438e358cb687ce .