Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Tagging unit tests

2 views
Skip to first unread message

Egon Willighagen

unread,
Jul 11, 2019, 9:20:37 AM7/11/19
to bridgedb...@googlegroups.com

Hi all,

taking advantage of the work that Manas did early in his GSoC project, I enabled the JUnit(5) tests for one of the webservices (BioMart; just to see if they fail or not), and tagged them with "webservice". I've updated the pom.xml so that Maven does not run these tests by default (because they currently actually fail).

So, if you wish to use tagging for certain tests, this is the Java code to add to the JUnit class:

@Tag("someTag")


You can run Maven to just run tests with that tag with:

mvn -Djunit5.groups=webservice clean install

One additional @Tag I like to see is for the tests that require a MySQL installation. These tests are currently failing. See this issue tracker entry: https://github.com/bridgedb/BridgeDb/issues/123

Grtz,

Egon

--
Hi, do you like citation networks? Already 51% of all citations are available available for innovative new uses. Join me in asking the American Chemical Society to join the Initiative for Open Citations too. SpringerNature, the RSC and many others already did.

-----
E.L. Willighagen
Department of Bioinformatics - BiGCaT
Maastricht University (http://www.bigcat.unimaas.nl/)
Homepage: http://egonw.github.com/
Blog: http://chem-bla-ics.blogspot.com/
PubList: https://www.zotero.org/egonw
ORCID: 0000-0001-7542-0286
ImpactStory: https://impactstory.org/u/egonwillighagen

Manas Awasthi

unread,
Jul 11, 2019, 9:24:35 AM7/11/19
to bridgedb-discuss
Hello Sir,

I have already started working on tagging the tests with "mysql" tag and will finish it by tonight ( worst case scenario tomorrow )

Regards,
Manas Awasthi 

Egon Willighagen

unread,
Jul 11, 2019, 9:31:11 AM7/11/19
to bridgedb...@googlegroups.com
On Thu, Jul 11, 2019 at 3:24 PM Manas Awasthi <marv...@gmail.com> wrote:
I have already started working on tagging the tests with "mysql" tag and will finish it by tonight ( worst case scenario tomorrow )

Awesome, thanks!

When you start working on a particular issue, I can recommend leaving that as a note/comment in the issue tracker.

Egon

Reply all
Reply to author
Forward
0 new messages