Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-3851

JUnit 5 migration with release of 1.13

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None
    • Any?

      Now that JUnit 5 has had its second general release (as of Feb 18, 2018) is it time to start talking about migrating our tests to the new framework whenever Bukkit updates to Java 8?

      I realise 1.13 is still a ways off, and that it's not guaranteed Bukkit will even update to Java 8 with it, but JUnit 5 could make implementing and maintaining tests much easier.

      Primarily I'm talking about parameterized tests with dependency injection.

      As well, it natively supports Enum parameters, so we can get rid of a lot of the classes that only contain a single test and put them in a "holder" class and run those tests from there.

      There's much more it does, but those are pretty much the one thing I was playing around with.

       

      User Guide: https://junit.org/junit5/docs/current/user-guide/

            Unassigned Unassigned
            Senmori Senmori
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: