[ https://issues.apache.org/jira/browse/FINERACT-1209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17215999#comment-17215999 ]
Michael Vorburger commented on FINERACT-1209: --------------------------------------------- How could we best get started with this? Step by step, you know the way I like it... ;) We can't "just" make {{fineract-provider/src/integrationTest/}} use the new {{fineract-client}} module, can we? I fear that would introduce a "dependency loop", because the {{fineract-client}} build requires {{fineract-provider/build/classes/java/main/static/swagger-ui/fineract.yaml}}, right? So.. do we need a new {{fineract-integrationtest}} module?! Or should we get started with a {{fineract-client-demo}} module? What server should a test in that module run against? We COULD run it against https://www.fineract.dev, to start with. I'll play with this as soon as I get a minute. But a local server would be nicer? > Integration Tests using new Swagger Client API ("Fineract SDK") > --------------------------------------------------------------- > > Key: FINERACT-1209 > URL: https://issues.apache.org/jira/browse/FINERACT-1209 > Project: Apache Fineract > Issue Type: New Feature > Reporter: Michael Vorburger > Priority: Major > > Thanks to the progress in FINERACT-1189, I think we're closer than we have > ever been to do something I have dreamt of :D for a long time... basically > what we were discussing back in the comments of FINERACT-838, copy/paste: > {quote}(...) include sample code in the repo building against the generated > client libraries to test and illustrate their usage. (...) it's still not > really "tested" at all, of course. We don't know if the generated code is a > working client. (...) In an ideal world, we should have some sort of > fineract-client-demo as a small separate project in the git root directory > (of Apache Fineract core, not separately/outside!) which depends on > fineract-client, and invokes at least some of the generated APIs. This IMHO > should always be run, e.g. on Travis CI. We would of course need a "back-end > server" - the easiest would probably be to run this against the local server > we're anyway starting for integrationTest, in a separate new Gradle task with > the appropriate dependencies?{quote} > Thinking about this again with 2 months distance since writing above, what we > probably REALLY should do, I don't know if instead of or in addition to a > separate small new {{fineract-client-demo}}, is have (all?) of our ITs (in > integrationTest) use the Swagger Client, instead of all those weird hand > hard-coded *Utils and *Helper classes with RestAssured - that would be so > much nicer! > [~aleks] [~ChinmayKulkarni] [~ptuomola] [~manthan] -- This message was sent by Atlassian Jira (v8.3.4#803005)