dorgflow icon indicating copy to clipboard operation
dorgflow copied to clipboard

create tests-only patches

Open joachim-n opened this issue 8 years ago • 2 comments

Dorgpatch (this project's predecessor) is able to detect a secondary branch if it has a name of the form '12345-tests'. It's probably too complex to create this branch automatically from the list d.org patches.

But an alternative approach would be to do a git diff on only certain folders. We know where tests are going to be located, so this approach might work:

  • list all files which have changed
  • identify the ones which have tests. For contrib, I think this is /tests/ and /src/Tests. For core I'm not sure sure.
  • output a patch of just the changes to those files.

joachim-n avatar Jan 02 '17 15:01 joachim-n

FYI: the d.o. testrunner plans on detecting the tests and applying them first to prove the tests fail initially : https://www.drupal.org/node/2569585

ryanaslett avatar Jan 02 '17 18:01 ryanaslett

Cool! Thanks for letting me know. In that case, I'll hold off on this for now and see what happens with the testrunner.

joachim-n avatar Jan 02 '17 20:01 joachim-n