Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: load spec resources from directory #229

Merged
merged 1 commit into from
Jan 20, 2023
Merged

Conversation

saig0
Copy link
Collaborator

@saig0 saig0 commented Jan 20, 2023

Description

Extend the @BpmnSpecSource annotation for JUnit to accept a directory that contains the spec resources. This is an alternative to the specification of all spec resources explicitly.

@BpmnSpecRunner
class BpmnSpecExtensionTest(private val specRunner: SpecRunner) {

    @ParameterizedTest
    @BpmnSpecSource(specDirectory = "specs")
    fun `should run all specs in directory`(spec: BpmnSpecTestCase) {

        val testResult =
            specRunner.runSingleTestCase(resources = spec.resources, testcase = spec.testCase)

        assertThat(testResult).isSuccessful()
    }

}

@saig0 saig0 merged commit 6ce316c into main Jan 20, 2023
@saig0 saig0 deleted the spec-resource-directory branch January 20, 2023 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant