This is amazing!

> On Oct 12, 2021, at 3:37 PM, Dale Emery <dem...@vmware.com> wrote:
> 
> In September 2021, Geode added support for writing and running tests using 
> JUnit 5.
> 
> Most Geode modules now support JUnit 5. For most Geode modules, you can now 
> write each test class using either JUnit 5's "Jupiter" API or the legacy 
> JUnit 4 API.
> 
> Which modules support JUnit 5? Any source set that depends on geode-junit or 
> geode-dunit already has JUnit 5 support. For those source sets you can start 
> writing tests using the JUnit Jupiter API now, and Gradle will run them.
> 
> To add JUnit 5 support to a module or source set: Add lines like these to the 
> "dependencies" configuration of the module’s build.gradle file:
> 
>                                
> testImplementation('org.junit.jupiter:junit-jupiter-api')
>                                
> testRuntimeOnly('org.junit.jupiter:junit-jupiter-engine')
> 
> The first line allows you to write unit tests using the JUnit Jupiter API. 
> The second line allows Gradle to run your JUnit Jupiter unit tests.
> 
> To use JUnit Jupiter to write and run other kinds of tests (e.g. 
> integrationTest or distributedTest), add similar lines to configure the 
> appropriate source sets.
> 
> LIMITATIONS
> 
>  *   Because Geode support for JUnit Jupiter is so new, we have not yet added 
> test framework code that takes advantage of its features.
>  *   JUnit Jupiter does not support the use of Rules.
> 
> SEE ALSO
> 
>  *   The JUnit 5 User Guide: 
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjunit.org%2Fjunit5%2Fdocs%2Fcurrent%2Fuser-guide%2F&amp;data=04%7C01%7Cjabarrett%40vmware.com%7C736b38c71e7a427f0c2c08d98dd0ef35%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C1%7C637696750780087368%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=mT8Xx10xI1KL8p7kgvpc3VMkTvxjJDPZUz1z%2F4EcaRQ%3D&amp;reserved=0
>  *   Using JUnit 5 (a copy of this message on the Geode wiki): 
> https://cwiki.apache.org/confluence/display/GEODE/Using+JUnit+5
> 
> Dale Emery
> 

Reply via email to