i use bats framework gradle. there way it, or require developing new plugin? doesn't seem appear on plugins page.
using examples https://docs.gradle.org/current/dsl/org.gradle.api.tasks.exec.html can make own task execute bates so:
task runbats(type:exec) { workingdir '../dirwithmybats' //on windows: commandline 'cmd', '/c', 'bats', 'mybats.bats' // or on linux commandline 'bats', 'mybats.bats' }
and run task via: gradle runbats
or make grade task depend on one.
if bats mybats.bat
fails task , build fail.
Comments
Post a Comment