jeudi 2 février 2017

Is it possible to generate a test class in Gradle?

Gradle provides a default App.java java source file and its test class at time of creation of project.

I created java class under main:

/src/main/java/some/package/algo/Sort.java

I would like to create a test class that corresponds to it.

/test/main/java/some/package/algo/SortTest.java

I can do that manually but is it possible that Gradle or any gradle command does it for me whenever I create a new regular Java Source file.

I am not using IDE and IDE provide such options.

Similarly any gradle command, If I have a test file than Gradle create java source file under main source.

Aucun commentaire:

Enregistrer un commentaire