-
Notifications
You must be signed in to change notification settings - Fork 493
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
provide authoritative list of desired integration tests #7897
Comments
I think the smallest chunk is to factor the list of tests out of the script and into a plain text file. In the suggestion below, I put them in
|
I vote for refactoring the whole thing. A tale I told before and would be great to see momentum. I have a strong opinion on not using any external files etc to define a list but start using the JUnit/Maven builtin mechanics properly.
What we should do beyond that:
(We could also create proper test suites with JUnit 4, see the examples, but it would be a good thing to go for JUnit 5 anyway... 😉 ) |
@poikilotherm I've already started down that path in a branch: https://github.com/OdumInstitute/dataverse/blob/run_test_suite/pom.xml#L844 In the mean time, IQSS would prefer to maintain its own list of preferred tests, so automated testing could reference that list while |
Also remove reference to phoenix server, which has been decommissioned. We'll finished cleaning up phoenix-related docs in #7031.
mention new IT test list in dev guide IQSS#7897
Currently, our automated testing references @pameyer's docker-aio work:
https://github.com/IQSS/dataverse/blob/develop/conf/docker-aio/run-test-suite.sh
Other testing implementations have been encouraged to use this script lest the Dataverse project have to maintain multiple lists of integration tests.
The run-test-suite.sh script includes the line
# TODO: Rather than hard-coding the list of "IT" classes here, add a profile to pom.xml.
However, when I added an
all-integration-tests
profile to pom.xml in a branch, including**/*.java
runs more tests than are currently desired:If IQSS prefers to enumerate integration tests, I propose a stand-alone, authoritative list of desired tests which run-test-suite.sh and other testing implementations could reference from the Dataverse repo, possibly under
tests/
I also propose adding an
all-integration-tests
profile to pom.xml to complement theall-unit-tests profile
, which would be disabled by default but allow developers to easily call all available integration tests in onemvn
command.I'm offering to submit a pull request to take a stab at such things once enough developers tell me what I should do and not do.
The text was updated successfully, but these errors were encountered: