Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-5177

Support testing with JUnit 5

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 7.0.0
    • Plugin - JUnit

    Description

      Hi Team,

       

      Currently, struts2-junit-plugin supports testing of Spring based struts actions with on JUnit 4 and 3 using StrutsSpringTestCase and StrutsSpringJUnit4TestCase. The request is to add support for JUnit 5 with something similar to StrutsSpringJUnit5TestCase. I understand that we can run JUnit 4 tests using junit-vintage-engine but in our case we need to combine with other JUnit 5 based extensions - some custom and some already available - Spring, Testcontainers, etc.

       

      There is no issue in the current issues list to support this. Can I know if there is any plan to support the same? I am happy to make contribution if some one can guide me.

      -----------------------------------

      For POC purposes, I created parallels to XWorkJUnit4TestCase, StrutsJUnit4TestCase, and StrutsSpringJUnit4TestCase with much of the code remaining same. I was able to run tests using Spring's ExtendWith with a workaround and the workaround needs to be fixed properly.

       

      Thanks.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ganapati.b Ganapati
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: