JUnit
From BC$ MobileTV Wiki
jUnit is the most widely used testing tool for Java software development.
Specification
- JUnit's reporting XML Format: http://help.catchsoftware.com/display/ET/JUnit+Format
- JUnit XML reporting file format: http://llg.cubic.org/docs/junit/
Unit Testing supporting frameworks
TestNG
- TestNG: https://testng.org/
- TestNG tutorial: https://www.tutorialspoint.com/testng/testng_quick_guide.htm[1]
[2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15]
Mocking frameworks
- Mockito vs EasyMock vs JMockit: http://www.baeldung.com/mockito-vs-easymock-vs-jmockit
- EasyMock vs Mockito -- design vs maintainability?: https://stackoverflow.com/questions/2864796/easymock-vs-mockito-design-vs-maintainability
- Mockito vs EasyMock: https://github.com/mockito/mockito/wiki/Mockito-vs-EasyMock (from Mockito perspective)
- To EasyMock or to Mockito?: https://www.javaworld.com/article/2073140/to-easymock-or-to-mockito-.html
Mockito
- Mockito: http://site.mockito.org | DOWNLOAD | SRC
- Mockito verify cookbook: http://www.baeldung.com/mockito-verify
- Unit tests with Mockito - Tutorial: http://www.vogella.com/tutorials/Mockito/article.html
PowerMock
- PowerMock: http://powermock.github.io/ | SRC
EasyMock
- EasyMock: http://easymock.org | DOWNLOAD | SRC
JMockIt
- JMockIt: http://jmockit.github.io | DOWNLOAD | SRC
WireMock
- WireMock: http://wiremock.org | DOWNLOAD | SRC
- WireMock Tutorial -- Request Matching, Part Four: https://www.petrikainulainen.net/programming/testing/wiremock-tutorial-request-matching-part-four/
Reporting Frameworks
Allure
Allure is an OSS dashboard and reporting tool for JUnit and similarly formatted Test frameworks' outputs. It aggregates Test results into trend graphs and visual charts/graphs that could be consumed and understood by less technical users.
- Allure: http://allure.qatools.ru/ | [ DEMO] | DOCS
- Example of usage Allure Report with JUnit & Maven: https://github.com/allure-examples/allure-junit-example
- Allure -- report generation (from Jenkins Pipeline): https://docs.qameta.io/allure/#_report_generation
ReportPortal
- ReportPortal: http://reportportal.io (AI-powered Test Automation Dashboard)
Tools
- wikipedia: List of unit testing frameworks
- Allure - xUnit report aggregation tool: | DEMO[26]
- Jenkins plugin -- jUnit: https://plugins.jenkins.io/junit[27][28][29]
JAVA
- jUnit - JAVA Test-driven deployment tool: http://www.junit.org/
- jUnit Tools: http://junit-tools.org/index.php/getting-started (Eclipse plugin)
- Maven plugin -- "surefire" test run & report configuration tool: http://maven.apache.org/surefire/maven-surefire-report-plugin/ | DEMO
[30] [31] [32] [33] [34] [35] [36] [37] [38] [39]
JavaScript
- JSunit: http://jsunit.berlios.de/
- Junit Viewer: https://www.npmjs.com/package/junit-viewer
PHP
- PHP Unit: http://www.phpunit.de/manual/current/en/
Perl
- Test Anything Protocol (TAP): http://search.cpan.org/~mschwern/Test-Simple-0.98/lib/Test/Simple.pm (TEST:Simple native unit test framework)
Python
- PyUnit: http://pyunit.sourceforge.net/pyunit.html
- junit2html: https://github.com/inorton/junit2html (turn Junit XML reports into self contained HTML reports )
C#
- xUnit: http://xunit.codeplex.com/ (C# successor to nUnit)
- nUnit: http://www.nunit.org/ (ASP/.net framework unit test framework)
C++
- CppUnit:
- Unit++: http://unitpp.sourceforge.net/ (designed for C++ especially, not ported from Java)
Objective-C
XML
- XML unit: http://xmlunit.sourceforge.net/
JSON
- JSONassert: http://jsonassert.skyscreamer.org/
Resources
- jUnit 5: https://github.com/junit-team/junit5
- jUnit (v4) Cheat Sheet: http://www.codign.com/pdf/junit4.pdf | 3.7
- jUnit Quick Guide: http://www.tutorialspoint.com/junit/junit_quick_guide.htm
- jUnit - Pocket Guide (book): http://books.google.ca/books?id=Ur_zMK0WQwIC&lpg=PP1&dq=junit&pg=PP1#v=onepage&q=&f=false
- JUnit Cookbook: http://junit.sourceforge.net/doc/cookbook/cookbook.htm
- JUnit Testing Utility Tutorial: http://supportweb.cs.bham.ac.uk/documentation/tutorials/docsystem/build/tutorials/junit/junit.html
- JUnit FAQ -- Organize a JUnit Test Suite: http://junit.sourceforge.net/doc/faq/faq.htm#organize_1
- jUnit Examples directory (click on TestCase to see several test cases): http://c2.com/cgi/wiki?TestCase
- Kent Beck's Original Unit Programming whitepaper: http://www.xprogramming.com/testfram.htm
- Using JUnit in Eclipse: http://www.cs.umanitoba.ca/~eclipse/10-JUnit.pdf
- ANT - JUnitReport: http://ant.apache.org/manual/Tasks/junitreport.html
- junit-2-html lib: https://github.com/inorton/junit2html (turn jUnit XML reports into self contained HTML reports)
Tutorials
- Naming standards for unit tests: https://osherove.com/blog/2005/4/3/naming-standards-for-unit-tests.html
- Conditional Test Logic: http://xunitpatterns.com/Conditional%20Test%20Logic.html
- JUnit Tutorials: http://www.mkyong.com/tutorials/junit-tutorials/
- jUnit 4 Simple "Hello World" example: http://icrunch.co/simple-junit-4-tutorial-hello-world-example/
- jUnit Tutorial: http://www.vogella.com/articles/JUnit/article.html (basic, with screenshots)
- JUnit 4.x - Quick Tutorial: http://code.google.com/p/t2framework/wiki/JUnitQuickTutorial
- JUnit Testing Utility Tutorial: http://supportweb.cs.bham.ac.uk/documentation/tutorials/docsystem/build/tutorials/junit/junit.pdf
- JUnit Tutorial -- Setting Up, Writing, and Running Java Unit Tests: https://blog.parasoft.com/junit-tutorial-setting-up-writing-and-running-java-unit-tests
- Getting started with Netbeans and JUnit plus Cobertura (Part 1): http://javadude.wordpress.com/2009/09/25/tutorial-getting-started-with-netbeans-and-junit-plus-cobertura/
- How to run JUnit from NetBeans?: http://old.nabble.com/How-to-run-JUnit-from-NetBeans--td25312993.html
- Simple Unit Test With Netbeans 6.1 and JUnit: http://linuxgembel.wordpress.com/2008/08/27/simple-unit-test-with-netbeans-61-and-junit/
- Unit tests with JUnit: http://www.linux.ie/articles/tutorials/junit.php[40][41][42]
- IBM - Jump into JUnit 4: http://www.ibm.com/developerworks/java/tutorials/j-junit4/
- JUnit testing JMS systems with Netbeans and Mockrunner: http://camelcase.blogspot.com/2006/12/junit-testing-jms-systems-with-netbeans.html
- How to unit test JMS code: http://activemq.apache.org/how-to-unit-test-jms-code.html
- ActiveMQ Resource Adapter -- Integration Tests: http://activemq.apache.org/integration-tests.html
- Using JUnit to test selenium test cases with the selenium java client driver: http://www.junit.org/node/322
- Easy transactional DAO JUnit tests using Spring: http://serg.io/blog/2007/05/easy-transactional-dao-junit-tests.html
- How to develop Hadoop Tests: https://wiki.apache.org/hadoop/HowToDevelopUnitTests
- Intro to JavaScript Unit Testing: http://coding.smashingmagazine.com/2012/06/27/introduction-to-javascript-unit-testing/
- JUnit Rules: http://java.dzone.com/articles/junit-rules
- Dealing With Similar Tests in JUnit 5: http://dzone.com/articles/dealing-with-similar-tests-in-junit-5 (assertAll now allows chaining similar tests, i.e. varations in values of calls to same methods)
- How to run JUnit test cases from the command line: https://stackoverflow.com/questions/2235276/how-to-run-junit-test-cases-from-the-command-line (Maven, Ant or Command-line directly via java -cp bin;C:\APPS\LIBS\junit\junit-4.12.jar;C:\APPS\TestAutomation\Selenium\selenium-html-runner-3.4.0.jar com.mypackage.MyTestSuite while replacing the ";" for ":" on Linux/Unix)[43][44][45][46]
- How to run JUnit tests suite in Ant?: https://stackoverflow.com/questions/20248924/how-to-run-junit-tests-suite-in-ant
- How to run JUnit test suite in Maven as "mvn test" goal?: https://semaphoreci.com/community/tutorials/how-to-split-junit-tests-in-a-continuous-integration-environment[47][48][49][50][51][52][53][54][55]
- Eclipse and EclEmma -- Best Code Coverage Plugin – Complete Working Testcase Tutorial: https://crunchify.com/what-is-the-best-code-coverage-plugin-you-should-use-in-eclipse-ide/
- Improve Java Code Coverage and Quality with Unit Tests and JaCoCo: https://medium.com/capital-one-tech/improve-java-code-with-unit-tests-and-jacoco-b342643736ed
- JUnit Eclipse Plugin?: https://stackoverflow.com/questions/1962567/junit-eclipse-plugin (as of Eclipse 3.4+ might as well just use the default JUnit integration that comes pre-installed with JDT)
- How to disable JUnit Test - @Ignore annotation Example https://javarevisited.blogspot.com/2012/06/junit4-annotations-test-examples-and.html?m=1
- How to JUnit Test a Private Method: https://cjwebb.com/junit-test-private-method/
- Test private methods using Junit5: https://chanakar.medium.com/test-private-methods-using-junit5-bdc840c5a289
- What XSLT converts JUnit Xml format to JUnit Plain format: https://stackoverflow.com/questions/9470060/what-xslt-converts-junit-xml-format-to-junit-plain-format[56][57][58][59]
- Headless Build (Test) - Final Step (Formatting the unit test Report): https://dzone.com/articles/headless-build-final-step
- TestNG HTML & XML Reports Example: https://examples.javacodegeeks.com/enterprise-java/testng/testng-html-xml-reports-example/
- Allure Reports - JUnit Example: https://github.com/allure-examples/allure-junit-example
- How can I generate an HTML report for Junit results?: https://stackoverflow.com/questions/2385553/how-can-i-generate-an-html-report-for-junit-results
- Running JUnit tests with Ant: https://stackoverflow.com/questions/4518677/running-junit-tests-with-ant
- Unit Testing Patterns -- Common Patterns to Follow for Error Free Applications: https://dzone.com/articles/unit-testing-patterns-common-patterns-to-follow-fo
- Parameterized tests: https://github.com/junit-team/junit4/wiki/Parameterized-tests[60]
- Automating Eclipse PDE Unit Tests using Ant: http://www.eclipse.org/articles/article.php?file=Article-PDEJUnitAntAutomation/index.html
- Resolving files in jUnit: https://stackoverflow.com/questions/23360092/resolving-files-in-junit[61][62][63]
- How to call getClass() from a static method in Java? https://stackoverflow.com/questions/8275499/how-to-call-getclass-from-a-static-method-in-java
- Writing Unit Tests for Spring MVC Controllers - Forms: https://www.petrikainulainen.net/programming/testing/writing-unit-tests-for-spring-mvc-controllers-forms/
- Writing Unit Tests for Spring MVC Controllers - Rendering a List: https://www.petrikainulainen.net/programming/testing/writing-unit-tests-for-spring-mvc-controllers-rendering-a-list/
- Writing Unit Tests for a Spring MVC REST API - Configuration: https://www.petrikainulainen.net/programming/testing/writing-unit-tests-for-a-spring-mvc-rest-api-configuration/
- Unit Testing with JUnit5 - Tutorial: http://www.vogella.com/tutorials/JUnit/article.html#junit5
- JUnit 5 Tutorial - Nice & Easy: https://www.youtube.com/watch?v=6uSnF6IuWIw (includes example for dynamic JSON/XML stubbing into Unit Tests)
- A Guide to JUnit 5: http://www.baeldung.com/junit-5
- Migrating from JUnit4 to JUnit5: Dhttps://junit.org/junit5/docs/snapshot/user-guide/#migrating-from-junit4
- Migrating from JUnit 4 to JUnit 5: http://www.baeldung.com/junit-5-migration[64][65][66][67][68]
- Eclipse -- "No tests found using JUnit 5" caused by NoClassDefFoundError for LauncherFactory: https://stackoverflow.com/questions/46717693/eclipse-no-tests-found-using-junit-5-caused-by-noclassdeffounderror-for-launcher
- Embracing JUnit 5 with Eclipse: https://www.eclipse.org/community/eclipse_newsletter/2017/october/article5.php
- jUnit 5 - state of the union: https://www.sitepoint.com/junit-5-state-of-the-union/
- jUnit 5 - early test drive: https://www.infoq.com/articles/JUnit-5-Early-Test-Drive
- jUnit 5 – Parameterized Tests: https://blog.codefx.org/libraries/junit-5-parameterized-tests/
- JUnit 5 Tutorial -- Writing Assertions With JUnit 5 Assertion API: https://www.petrikainulainen.net/programming/testing/junit-5-tutorial-writing-assertions-with-junit-5-api/
- JUnit 5 Tutorial - Writing Assertions With AssertJ: https://www.petrikainulainen.net/programming/testing/junit-5-tutorial-writing-assertions-with-assertj/
- Deep Dive into JUnit 5 Extension Model and BDD: https://www.infoq.com/articles/deep-dive-junit5-extensions
- Testing In The Modular World: https://sormuras.github.io/blog/2018-09-11-testing-in-the-modular-world
- Test Execution Order in JUnit 5: https://blog.codeleak.pl/2019/03/test-execution-order-in-junit-5.html
- The Order of Tests in JUnit 5: https://www.baeldung.com/junit-5-test-order
- "Spring Boot" testing with JUnit 5: https://blog.codeleak.pl/2019/09/spring-boot-testing-with-junit-5.html
- Mocking with (and without) "Spring Boot": https://reflectoring.io/spring-boot-mock/
- Testing "Asynchronous Operations" in Spring With JUnit 5 and Byteman: https://dzone.com/articles/testing-asynchronous-operations-in-spring-with-jun-1 | SRC
[69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79]
- Unit Testing and Integration Testing in Practice: https://dzone.com/articles/unit-testing-and-integration-testing-in-practice (JUnit, Mockito & Vaadin Test Bench)
- Extending JUnit 5 with @ExtendWith(MyTestThing.class) annotation: https://www.mscharhag.com/java/junit5-custom-extensions (example shows adding precies test run timings to test methods via annotation)
- Modern Best Practices for Testing in Java: https://phauer.com/2019/modern-best-practices-testing-java/
- Testing and Mocking of Static Methods in Java (dispelling myth static code is automatically harder to test or worse): https://blog.codecentric.de/en/2011/11/testing-and-mocking-of-static-methods-in-java/[80]
- Unit Testing HTTP calls with LocalTestServer: https://www.jdev.it/unit-testing-http-calls-with-localtestserver/
- A new way to Unit Test multi-threaded Java: https://vmlens.com/articles/ct/new_way_to_test/
- Creating Deep Stubs With Mockito to Chain Method Stubbing .vs. MockWebServer: https://rieckpil.de/creating-deep-stubs-with-mockito-to-chain-method-stubbing/
- Exhaustive JUnit5 Testing with Combinations, Permutations, and Products: https://minborgsjavapot.blogspot.com/2022/06/exhaustive-junit5-testing-with.html
External Links
- wikipedia: jUnit
- Naming convention JUnit suffix or prefix Test: https://stackoverflow.com/questions/3146821/naming-convention-junit-suffix-or-prefix-test[81][82]
- So what should a JUnit test look like and how do I start using it? http://www.jaredrichardson.net/articles/junit-tutorial.html
- Some short jUnit 4 snippets/examples: http://javarevisited.blogspot.ca/2012/06/junit4-annotations-test-examples-and.html
- What fields does java.util.Date.equals compare?: http://www.coderanch.com/t/463659/java/java/fields-java-util-Date-equals
- Is assertEquals(String, String) reliable?: http://stackoverflow.com/questions/1201927/java-is-assertequalsstring-string-reliable
- Why assertEquals and assertSame in junit return the same result for two instances same class?: https://stackoverflow.com/questions/28451925/why-assertequals-and-assertsame-in-junit-return-the-same-result-for-two-instance
- Working Efficiently with JUnit in Eclipse: http://www.codeaffine.com/2012/11/26/working-efficiently-with-junit-in-eclipse-2/
- JUnit confusion -- use 'extends TestCase' (JUnit 3.x) or '@Test' (JUnit 4.x)?: https://stackoverflow.com/questions/2635839/junit-confusion-use-extends-testcase-or-test
- JUnit docs - @Ignore annotation to turn off individual tests: http://junit.sourceforge.net/javadoc/org/junit/Ignore.html
- University Sample Assignment -- Object Oriented Programming with Unit Testing: https://sewiki.iai.uni-bonn.de/teaching/lectures/oosc/2012/assignment_1
- Unit Testing XSLT Stylesheets (PRESENTATION): http://www.jezuk.co.uk/accu2005/xslttesting/slide-2.html (good example of S5 format)
- Combine multiple testng-results.xml files into a single XML file: http://blog.meesqa.com/2010/09/11/combine-multiple-testng-resultsxml-files-into-a-single-xml-file/
- jUnit 4 guide and sample report (in Chinese): http://www.uml.org.cn/j2ee/200703132.asp
- TestNG Vs JUnit -- What's the Difference?: https://www.guru99.com/junit-vs-testng.html
- JUnit 4 Vs TestNG – Comparison: http://www.mkyong.com/unittest/junit-4-vs-testng-comparison/ (includes a nice chart summarizing)
- jUnit usage vs TestNG: https://javalibs.com/compare/junit-vs-testng
- JUnit vs TestNG -- Which Testing Framework Should You Choose?: http://blog.takipi.com/junit-vs-testng-which-testing-framework-should-you-choose/
- The correct way to use integration tests in your build process: https://zeroturnaround.com/rebellabs/the-correct-way-to-use-integration-tests-in-your-build-process/
- Java testing with jUnit: http://www.yolinux.com/TUTORIALS/Java-JUnit.html
- Running JUnit and TestNG Unit Tests and Selenium Tests Created With JUnit or TestNG: https://support.smartbear.com/testcomplete/docs/working-with/integration/unit-test-frameworks/junit/running.html
- Maven & Jenkins with Selenium jUnit tests -- Complete Tutorial: https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html
- Running Selenium JUnit tests from Jenkins: https://www.ontestautomation.com/running-selenium-junit-tests-from-jenkins/[83]
- Configuring Test Reports in Jenkins: https://www.safaribooksonline.com/library/view/jenkins-the-definitive/9781449311155/ch06s03.html
- Configure TestNG Reports in Jenkins: http://www.seleniumeasy.com/jenkins-tutorials/set-up-testng-reports-in-jenkins
- Jenkins Part 4.1 -- Functional Java Tests via JUnit: https://oliverveits.wordpress.com/2017/01/06/getting-started-with-jenkins-part-4-1-functional-java-tests-via-junit/
- Integration With Unit Testing Frameworks - JUnit and TestNG Tests: https://support.smartbear.com/testcomplete/docs/working-with/integration/unit-test-frameworks/junit/index.html
- Running JUnit and TestNG Unit Tests and Selenium Tests Created With JUnit or TestNG: https://support.smartbear.com/testcomplete/docs/working-with/integration/unit-test-frameworks/junit/running.html
- JUnit 5 Maven Dependency [pom.xml] Example: https://howtodoinjava.com/junit5/junit-5-maven-dependency-pom-xml-example/ (with example how to run legacy tests)
- Sling ResourceResolverFactory inside @Activate throws RunTimeException: https://stackoverflow.com/questions/50245406/sling-resourceresolverfactory-inside-activate-throws-runtimeexception
- JUnit 5.6 Makes Testing Easy with New Features: https://blogs.oracle.com/javamagazine/junit-5-6-makes-testing-easy-with-new-features
- Five JUnit 5 features you might not know yet: https://rieckpil.de/five-junit-5-features-you-might-not-know-yet/
- Better Tests Names Using JUnit's Display Name Generators: https://dzone.com/articles/better-tests-names-using-junits-display-names-gene
- Running JUnit tests from various IDEs & CLI: https://junit.org/junit5/docs/current/user-guide/#running-tests
[84] [85] [86] [87] [88] [89] [90] [91] [92]
References
- ↑ TestNG Test Suite: https://www.toolsqa.com/selenium-webdriver/testng-testsuite/
- ↑ Reasons to use TestNG in the age of JUnit 5?: https://www.reddit.com/r/java/comments/78v0kr/reasons_to_use_testng_in_the_age_of_junit_5/
- ↑ JUnit vs TestNG: https://www.journaldev.com/21768/junit-vs-testng
- ↑ Difference Between JUnit and TestNG: https://www.differencebetween.net/technology/difference-between-junit-and-testng/
- ↑ TestNG vs JUnit 5 battle: https://seleniumcamp.com/talk/testng-vs-junit-5-battle/
- ↑ TestNG Vs JUnit -- What's the Difference?: https://www.guru99.com/junit-vs-testng.html
- ↑ A quick JUnit .vs. TestNG comparison: https://www.baeldung.com/junit-vs-testng
- ↑ From JUnit to TestNG - migration story: http://kaczanowscy.pl/tomek/2012-04/from-testng-to-junit-migration-story
- ↑ Provide AssertionsTestNG to aid migration from TestNG: https://github.com/junit-team/junit5/issues/1009
- ↑ TestNG docs -- Migrating from JUnit: https://testng.org/doc/migrating.html
- ↑ TestNG MixedMode: http://wiki.netbeans.org/TestNG_MixedMode
- ↑ Converting OpenGamma From JUnit to TestNG: https://web.archive.org/web/20130702055926/https://opengamma.com/blog/2011/04/04/converting-opengamma-junit-testng
- ↑ Migration from jUnit to TestNG: http://go-gaga-over-testing.blogspot.com/2016/03/migration-from-junit-to-testng.html
- ↑ Test Automation For Manual Testers: http://test-able.blogspot.com/2016/10/how-to-convert-test-classes-from-junit-to-testng.html
- ↑ Reassessing TestNG vs. Junit: https://blog.frankel.ch/reassessing-testng-junit/
- ↑ A Guide to Mocking With Mockito : https://dzone.com/articles/a-guide-to-mocking-with-mockito
- ↑ Unit tests with Mockito - Tutorial: http://www.vogella.com/tutorials/Mockito/article.html
- ↑ Stubbing and Mocking with Mockito 2 and JUnit: https://semaphoreci.com/community/tutorials/stubbing-and-mocking-with-mockito-2-and-junit
- ↑ Getting Started with Mocking in Java using Mockito : https://dzone.com/articles/getting-started-mocking-java
- ↑ Unit testing void methods in Java Junit/Mockito: https://stackoverflow.com/questions/41398426/unit-testing-void-methods-in-java-junit-mockito
- ↑ How to Mock HttpServletRequest: https://www.baeldung.com/java-httpservletrequest-mock
- ↑ Create a mocked list in Mockito: https://stackoverflow.com/questions/18514033/create-a-mocked-list-by-mockito
- ↑ Introduction to Mockito’s AdditionalAnswers: https://www.baeldung.com/mockito-additionalanswers
- ↑ The Difference Between mockito-core and mockito-all packages: https://www.baeldung.com/mockito-core-vs-mockito-all
- ↑ Clean Unit Tests with Mockito: https://reflectoring.io/clean-unit-tests-with-mockito/
- ↑ Create Selenium/WebDriver HTML Reports With The Allure Framework (using simple Maven POM config): https://seleniumjava.com/2015/10/15/create-selenium-webdriver-html-reports-with-the-allure-framework/
- ↑ Jenkins plugin -- xUnit: https://plugins.jenkins.io/xunit
- ↑ Jenkins & JUnit: https://stackoverflow.com/questions/8790366/jenkins-and-junit
- ↑ Jenkins - Unit Testing: https://www.tutorialspoint.com/jenkins/jenkins_unit_testing.htm
- ↑ Quick Guide to the Maven Surefire Plugin: https://www.baeldung.com/maven-surefire-plugin
- ↑ Maven Surefire: https://maven.apache.org/surefire/maven-surefire-plugin/
- ↑ How to configure maven surefire plugin work with JUnit 5: https://ahmadatwi.me/2018/08/16/tutorial-how-to-configure-maven-surefire-plugin-work-with-junit-5/
- ↑ Using JUnit 5 Platform from Maven surefire: https://maven.apache.org/surefire/maven-surefire-plugin/examples/junit-platform.html
- ↑ Integration Of Maven With TestNg Using Maven Surefire Plugin: https://www.softwaretestinghelp.com/integration-of-maven-with-testng-using-surefire-plugin/
- ↑ What is the use of Maven-Surefire plugin: https://stackoverflow.com/questions/32942389/what-is-the-use-of-maven-surefire-plugin
- ↑ Maven surefire - No tests were executed: https://stackoverflow.com/questions/58996562/maven-no-tests-were-executed
- ↑ Using JaCoCo And Surefire Maven Plugins With Spring Boot: https://asbnotebook.com/2020/01/08/using-jacoco-and-surefire-maven-plugins-with-spring-boot/
- ↑ An API incompatibility was encountered while executing org.apache.maven.plugins:maven-shade-plugin:1.3.1:shade: java.lang.AbstractMethodError: null: https://stackoverflow.com/questions/32382445/an-api-incompatibility-was-encountered-while-executing-org-apache-maven-plugins
- ↑ JUnit 5 does not execute method annotated with BeforeEach: https://stackoverflow.com/questions/49441049/junit-5-does-not-execute-method-annotated-with-beforeeach
- ↑ Create JUnit Test Suite with Example: @RunWith @SuiteClasses: https://www.guru99.com/create-junit-test-suite.html
- ↑ JUnit in a Nutshell -- Test Runners: https://www.codeaffine.com/2014/09/03/junit-nutshell-test-runners/
- ↑ JUnit in a Nutshell -- Unit Test Assertion: https://www.codeaffine.com/2014/09/10/junit-nutshell-unit-test-assertions/
- ↑ How to run a java project in command line: https://stackoverflow.com/questions/6153057/how-to-run-a-java-project-in-command-line
- ↑ Random Programming Notes from a Web Developerby Sergiy KovalchukHow to Compile and Run Java Code from a Command Line: http://www.sergiy.ca/how-to-compile-and-launch-java-code-from-command-line/
- ↑ How to execute jar file with a external dependency using command line on Windows?: https://stackoverflow.com/questions/26551718/how-to-execute-jar-file-with-a-external-dependency-using-command-line-on-windows#26552470
- ↑ Running a junit class file from command line: https://stackoverflow.com/questions/31049286/running-a-junit-class-file-from-command-line
- ↑ Maven "surefire" plugin example: https://examples.javacodegeeks.com/enterprise-java/maven/maven-surefire-plugin-example/
- ↑ How to run unit test with Maven: https://www.mkyong.com/maven/how-to-run-unit-test-with-maven/
- ↑ How to skip Maven unit test: https://www.mkyong.com/maven/how-to-skip-maven-unit-test/
- ↑ Run Junit Suite using Maven Command: https://stackoverflow.com/questions/11762801/run-junit-suite-using-maven-command
- ↑ Running (a particular) JUnit test suite using Maven: https://stackoverflow.com/questions/13911716/running-junit-test-suite-using-maven
- ↑ Running a JUnit4 Test Suite in Maven using maven-failsafe-plugin: https://stackoverflow.com/questions/7792886/running-a-junit4-test-suite-in-maven-using-maven-failsafe-plugin
- ↑ How to run JUnit tests by category in Maven?: https://stackoverflow.com/questions/3100924/how-to-run-junit-tests-by-category-in-maven
- ↑ Using JUnit Categories with Maven Failsafe plugin: https://stackoverflow.com/questions/11542530/using-junit-categories-with-maven-failsafe-plugin
- ↑ Using JUnit @Category and Maven profiles to get stable test suite: https://technicaltesting.wordpress.com/2012/09/24/using-junit-category-and-maven-profiles-to-get-stable-test-suites/
- ↑ jUnit Frames XSLT: http://svn.apache.org/viewvc/ant/core/tags/ANT_171/src/etc/junit-frames.xsl?view=markup (original report formatter from XML to HTML)
- ↑ XML JUnit Results formatter: http://svn.apache.org/viewvc/ant/core/tags/ANT_171/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLJUnitResultFormatter.java?view=markup
- ↑ Custom JUnit Report?: https://stackoverflow.com/questions/1727616/custom-junit-report
- ↑ What XSLT converts JUnit Xml format to JUnit Plain format: https://stackoverflow.com/a/9471505/335867
- ↑ jUnit with Parameters -- Quickstart docs: https://github.com/Pragmatists/JUnitParams/wiki/Quickstart
- ↑ Detecting Windows or Linux (in JAVA)?: https://stackoverflow.com/questions/14288185/detecting-windows-or-linux
- ↑ Get Path of current file: https://stackoverflow.com/questions/19451480/get-path-of-current-file?lq=1
- ↑ How to get the path of running java program: https://stackoverflow.com/questions/17540942/how-to-get-the-path-of-running-java-program
- ↑ Migration from Junit 4 to Junit 5: https://dev.to/vga/migration-from-junit-4-to-junit-5-19d6
- ↑ Porting Your Existing Tests to JUnit5: https://dzone.com/articles/porting-your-existing-tests-to-junit5
- ↑ emonstrate migration path from JUnit 4 to JUnit 5: https://github.com/junit-team/junit5/issues/169
- ↑ Spring-Based Apps -- Migrating to JUnit 5: https://dzone.com/articles/spring-based-application-migrating-to-junit-5
- ↑ How to Replace Rules in JUnit 5 : https://www.codeaffine.com/2016/04/06/replace-rules-in-junit5/
- ↑ JUnit 5.3+ docs -- Parallel Execution: https://junit.org/junit5/docs/current/user-guide/#writing-tests-parallel-execution
- ↑ Running JUnit 4 Tests in Parallel with "Maven Surefire" settings: https://www.baeldung.com/maven-junit-parallel-tests
- ↑ Running tests in parallel with JUnit 5: https://igorski.co/running-tests-in-parallel-with-junit-5/
- ↑ Running Tests in Parallel with JUnit: https://stackoverflow.com/questions/33703618/running-tests-in-parallel-with-junit
- ↑ Migrate from TestNG to JUnit -- commit examle on orientdb: https://github.com/orientechnologies/orientdb/commit/5580620c79ebd9a432b2cffcfb028a2317be285b
- ↑ Migrating from JUnit 4 to JUnit 5 -- A Definitive Guide: https://www.codingrevolution.com/junit-5-migration/ | SRC
- ↑ Migrate tests from TestNG to JUnit: https://github.com/Graylog2/graylog2-server/commit/c148953cac96fcdf9681ddca9ad80aed8c6698f8
- ↑ Migrating to TestNG (using Java-based TestNG XML generator): https://www.theserverside.com/news/1365207/Migrating-to-TestNG
- ↑ JUnit .vs. TestNG -- Which Testing Framework Should You Choose?: https://blog.overops.com/junit-vs-testng-which-testing-framework-should-you-choose/
- ↑ JUnit4 vs TestNG – Comparison: https://www.mkyong.com/unittest/junit-4-vs-testng-comparison/
- ↑ Migrating from JUnit to TestNG: https://rvsubrahmanyam.wordpress.com/2015/09/10/migrating-from-junit-to-testng/
- ↑ JUnit - testing helper class with only static methods: https://stackoverflow.com/questions/9700179/junit-testing-helper-class-with-only-static-methods
- ↑ What Are JUnit 3.8 Naming Conventions?: http://sqa.fyicenter.com/FAQ/JUnit/What_Are_JUnit_3_8_Naming_Conventions_.html
- ↑ Are Naming Conventions For JUnit 4+ Still Needed?: http://www.adam-bien.com/roller/abien/entry/are_naming_conventions_for_junit
- ↑ Selenium Grid + JUnit + Jenkins — How to: https://stackoverflow.com/questions/21910296/selenium-grid-junit-jenkins-how-to
- ↑ Configure JUnit library container in test proj: https://github.com/eclipse/xtext-eclipse/pull/673
- ↑ Launch as Junit test not working for junit 5: https://github.com/eclipse/xtext-eclipse/issues/653
- ↑ Fix error "the import 'org.junit' cannot be resolved" in Eclipse: https://www.toddlahman.com/import-org-junit-cannot-resolved-eclipse/
- ↑ can't find run as junit test in eclipse: https://stackoverflow.com/questions/4794751/cant-find-run-as-junit-test-in-eclipse
- ↑ JUnit5 @Testable is ignored if org.junit.jupiter:junit-jupiter-engine is missing: https://github.com/eclipse/xtext-xtend/issues/519
- ↑ java.lang.NoClassDefFoundError org/junit/platform/launcher/TestExecutionListener: https://stackoverflow.com/questions/56387386/java-lang-noclassdeffounderror-org-junit-platform-launcher-testexecutionlistene
- ↑ java.lang.NoSuchMethodError org.junit.platform.commons.util.ReflectionUtils.tryToLoadClass Migrating to 5.4.0: https://github.com/junit-team/junit5/issues/1773
- ↑ Java Code Coverage in Eclipse: https://dzone.com/articles/java-code-coverage-in-eclipse
- ↑ java.lang.NoClassDefFoundError: org/junit/platform/commons/PreconditionViolationException when trying run junit5 test with maven: https://stackoverflow.com/questions/57040675/java-lang-noclassdeffounderror-org-junit-platform-commons-preconditionviolation