Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1348

Deltaspike is unusable with junit's @category

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7.2
    • None
    • TestControl

    Description

      A while ago we separated our tests in standard junit- and integration tests using junit's category mechanism: Example Article.

      The goal: When maven 'package' is used, then all tests annotated with @category are skipped. When using 'install' they are executed. If in either build a junit test fails, the build fails.

      So now we switched to Deltaspike's CdiTestRunner. And now the above mechanism doesn't work anymore:

      1. The integration tests are always executed ignoring the build phase (package, install...)
      2. If the integration fails the build doesn't fail.

      We were using the "RunWith" before so I think it is not a junit problem. I did some research but only gradle seemed to had a similar problem (https://github.com/gradle/gradle/issues/3189)

      Any ideas how to get it to work again?

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            tom_1st Lonzak
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: