How to Test Action Which Runs Gradle Task

  1. Could someone give me an example of how to set up a test which can assert that when an action is called, a certain gradle task is called with the expected arguments? I can't figure out how to do this.
  2. Could an example be given of how to set up a Java file in the fixture's editor?
  3. Is there any further documentation on how to set up an xml file to test what the gradle task does? In this case, the gradle task is a reformatter. I would like to set up a Java HelloWorld class with some formatting errors, then assert that it was reformatted correctly.
1
1 comment

Anyone? Any pointer would be appreciated!

0

Please sign in to leave a comment.