Deploy all bpmns in unit test

Hi all,

I’m just curious to know if there is a way of deploying all bpmns from a folder using the @Deploymnet annotation?

I’m aware that you can specify them as a list as follows (ignore the rubbish test :slight_smile: ), but if you had say 10 bpmns inside deployment/bpmn/ could you deploy them by just referencing the folder or be able to pass it a generated list of these files?

  @Deployment(resources = ["deployment/bpmn/diag1.bpmn", "deployment/bpmn/diag2.bpmn"])
  def 'test'() throws Exception {
    expect:
    processEngineRule.getRepositoryService().createProcessDefinitionQuery().list().forEach(
        { pd ->
          System.out.println(pd.name)
        }
    )
    true
  }

Cheers,

Matt