-
Notifications
You must be signed in to change notification settings - Fork 111
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
EL TCK Refactoring using Junit #1164
EL TCK Refactoring using Junit #1164
Conversation
- remove main method in each ELClient - add @test tag for all tests - add cleanup, logstart and logfinish logging methods for each test run
Thanks @alwin-joseph for working on EL TCK refactoring! I have some general feedback that is not specific to EL. I think that the (EE 11 Platform TCK generated) Standalone TCKs will need to be completed before the Jakarta EE 11 Platform TCK changes are completed. The reason being that the relevant Standalone TCKs always need to be completed before the EE SPEC wave can be considered. I'm mentioning ^ so that you can be mindful of the need and consider how it might apply to the EL refactoring work. IMO, we can separate the Standalone vs Full Platform aspects after the initial PR but I think we need to be stricter about addressing this for EE 11 so that we ensure that no changes are made to a TCK after the relevant EE Spec has been ratified without the SPEC team + implementations having a chance to validate that implementations still pass. The goal should be to produce a Standalone TCK that can be the basis for the Platform TCK tests (e.g. pending our better understanding how to do that with test vehicles or equivalent in the refactored EE 11 Platform TCK). |
I see PR #1159 on master branch that adds a new EL test. Reminder to self that the same should be merged to tckrefactor too along with this PR or as a separate change. |
Hi @starksm64 With respect to the vehicle implementation, would you have any comments for EL TCK refactoring in this PR.
|
./webartifacts/servlet/src/main/resources/api/jakarta_servlet/servletcontext40/addJspFile.jsp is currently referenced from the refactored Servlet TCK but I don't see any references from the Servlet TCK to
This is a good question as we currently have the problem of ratifying multiple Specifications before
IMO, it is better to not follow the same approach. We really should have separate source/maven artifacts for the Standalone (Java SE only tests) and the profile level TCK tests. I think that the profile level TCK tests can and should leverage the Standalone tests to avoid duplication (Profile TCK developers should update/adjust their tests accordingly to account for changes in the underlying Specification TCK tests that may occur prior to said underlying Specification being ratified).
We have a few choices on how we deal with each of the vehicles. For reference the different vehicles are still in https://github.com/jakartaee/platform-tck/tree/tckrefactor/common/src/main/java/com/sun/ts/tests/common/vehicle. I think we should walk through how each are used and consider if there is value in using them. I haven't gotten to the Persistence tests yet but I will be looking at |
el/src/main/java/com/sun/ts/tests/el/api/jakarta_el/arrayelresolver/ELClientIT.java
Outdated
Show resolved
Hide resolved
el/src/main/java/com/sun/ts/tests/el/api/jakarta_el/compositeelresolver/ELClientIT.java
Outdated
Show resolved
Hide resolved
el/src/main/java/com/sun/ts/tests/el/api/jakarta_el/elcontext/ELClientIT.java
Outdated
Show resolved
Hide resolved
This looks great. I managed to build the EL TCK locally without too much difficulty. I was able to configure the TCK to run against Tomcat's EL implementation easily. It was also simple to swap between the Jakarta EL API JAR and the EL API JAR provided by Tomcat. Everything passed in all combinations. The tests report a total of 359 tests which I assume is one less than the 360 reported by the current TCK as the signatures are not tested. Is that correct? Finally, by far the most impressive thing about this change is the time taken to run the TCK. The current TCK takes tens of minutes to complete. This refactored version takes less than 5s. |
@markt-asf I think the signature test work is still pending. |
Correct. The signature test work is pending (The total tests for standalone EL TCK are 349 +1 signature test). |
Related Issue(s)
#1126
Describe the change
Pending: