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 #107

Draft
wants to merge 27 commits into
base: main
Choose a base branch
from
Draft

Junit5 support #107

wants to merge 27 commits into from

Conversation

jredingcsv
Copy link
Contributor

Add JUnit5 support

Robert Wroblewski and others added 7 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
@github-actions github-actions bot added the base label Aug 11, 2022
@jredingcsv jredingcsv linked an issue Aug 12, 2022 that may be closed by this pull request
@sonarcloud
Copy link

sonarcloud bot commented Sep 14, 2022

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

20.7% 20.7% Coverage
0.0% 0.0% Duplication

jredingcsv and others added 4 commits October 24, 2022 08:58
# Conflicts:
#	maqs-base/src/main/java/com/cognizantsoftvision/maqs/base/BaseTest.java
#	maqs-base/src/test/java/com/cognizantsoftvision/maqs/base/BaseTestUnitTest.java
@sonarcloud
Copy link

sonarcloud bot commented Nov 28, 2022

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.

SPIKE - JUnit 5 Support
1 participant