Skip to content

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
@sonarqubecloud
Copy link

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
@sonarqubecloud
Copy link

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

2 participants