ml-gradle icon indicating copy to clipboard operation
ml-gradle copied to clipboard

mlGenerateUnitTestSuite sjs support

Open prestonmcgowan opened this issue 6 years ago • 4 comments

Allow the mlGenerateUnitTestSuite to take in an argument to create sjs or xqy unit test samples. The third sample could be a hybrid of sjs and xqy, but I am not sure of a good way to generate that.

Impacted file: ml-gradle/src/main/groovy/com/marklogic/gradle/task/test/GenerateUnitTestSuiteTask.groovy

Possible sample output from modifying the xqy sample files.

sjsSampleTestSuite.zip

prestonmcgowan avatar Oct 09 '19 19:10 prestonmcgowan

It would make a lot of sense if this task code would be moved to the ml-unit-test repo, hence this ticket should move there too?

grtjn avatar Apr 21 '21 12:04 grtjn

It would make a lot of sense if this task code would be moved to the ml-unit-test repo, hence this ticket should move there too?

I don't think marklogic-unit-test currently exports any tasks, so there would be no place for the code to land (currently).

dmcassel avatar Apr 21 '21 12:04 dmcassel

Not something that can't be fixed.. :)

Can't imagine it to be very hard. Wouldn't it be matter of somehow adding it to the ml-unit-test-client? Then again, not really an expert on exposing gradle tasks in jars.. :)

grtjn avatar Apr 21 '21 12:04 grtjn

Not something that can't be fixed.. :)

Can't imagine it to be very hard. Wouldn't it be matter of somehow adding it to the ml-unit-test-client? Then again, not really an expert on exposing gradle tasks in jars.. :)

Sounds like a question for @rjrudin

dmcassel avatar Apr 21 '21 14:04 dmcassel

@rjrudin fyi I'm preparing a PR for this

dmcassel avatar Jan 05 '23 19:01 dmcassel