Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Junit5 support #22

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open

Junit5 support #22

wants to merge 41 commits into from

Conversation

jonreding2010
Copy link
Contributor

add junit5 support to allow junit to run

Robert Wroblewski and others added 28 commits May 26, 2020 16:25
* Created Custom TestResult interface and Implementation to pass to set the TestResult of the test instance
* Created a TestWatcher implementation to catch test failure and successes since JUnit doesn't provide their own test result
* Added RegisterExtension Annotation to BaseGenericTest to register the Custom test watcher programmatically so that we can provide the test instance in the constructor
* Added appropriate Annotations for test lifecycle to BaseTest along with ExtensionContext and TestResult to replace ITestContext and ITestResult used by TestNG
* Created Test to see if junit and TestNG can be used in the same test class
* Created Copy of Test class with many tests using JUnit
* Updated base pom to include junit-api and junit-engine dependencies
* Created a properties file to run the JUnit tests in parallel
* Removed threadlocal since TestWatcher is created for each test
# Conflicts:
#	jmaqs-base/pom.xml
#	maqs-base/src/main/java/com/cognizantsoftvision/maqs/base/BaseTest.java
#	maqs-base/src/test/java/com/cognizantsoftvision/maqs/base/JUnit_BaseTestObjectUnitTest.java
# Conflicts:
#	maqs-base/src/main/java/com/cognizantsoftvision/maqs/base/BaseTest.java
#	maqs-base/src/test/java/com/cognizantsoftvision/maqs/base/BaseTestUnitTest.java
# Conflicts:
#	openmaqs-base/src/main/java/io/github/openmaqs/base/BaseTest.java
#	openmaqs-base/src/main/java/io/github/openmaqs/base/interfaces/JunitTestResult.java
#	openmaqs-base/src/main/java/io/github/openmaqs/base/interfaces/TestResult.java
#	openmaqs-base/src/main/java/io/github/openmaqs/base/watcher/JunitTestWatcher.java
#	openmaqs-base/src/test/java/io/github/openmaqs/base/junit/JUnitBaseGenericTestUnitTest.java
#	openmaqs-base/src/test/java/io/github/openmaqs/base/junit/JUnitBaseTestObjectUnitTest.java
#	openmaqs-base/src/test/resources/junit-platform.properties
@jonreding2010 jonreding2010 requested a review from a team as a code owner February 4, 2023 03:21
@github-actions github-actions bot added the base label Feb 4, 2023
@jonreding2010 jonreding2010 linked an issue Feb 4, 2023 that may be closed by this pull request
@sonarcloud
Copy link

sonarcloud bot commented Feb 27, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

12.2% 12.2% Coverage
0.0% 0.0% Duplication

@sonarcloud
Copy link

sonarcloud bot commented Apr 14, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

12.2% 12.2% Coverage
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JUnit 5 Support
2 participants