-
Notifications
You must be signed in to change notification settings - Fork 10
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
Tests fail on Apple Mac when building the project from command line #102
Comments
Comment by barbeau Looks like these are related to Hibernate and database access for the web app during the test:
|
Does anyone else have an M1 Mac to test this issue? There is a chance it may be resolved by PR #106 when that's merged. |
Just tried to build the project from the command line in the #106 branch on my Mac M1, I still get the issue. Here is the surfire-reports.zip. This also fails from the IntelliJ terminal. |
@isabelle-dr What JDK version are you using to build? |
@barbeau 16.0.1. Should I update to 17 and see if this works? |
Yes, please try 17 and see if you get the same. |
Same result with JDK 17: test failures 😭 |
Interesting - looks like you're getting different errors than Lionel:
|
@isabelle-dr Could you try one more time, this time with JDK 17 running |
The issue persists. |
What stack trace are you seeing now? The one you previously saw in #102 (comment), or the one Lionel saw in #102 (comment)? |
Here is exactly what I did:
Here is the surefire-reports.zip. This being said, the |
Can you share the surefire-reports for the webapp project? The one you linked only has the test results for the From the above screenshot this should be in We're specifically looking for the test results for The reason why this is important is that right now we have two different sets of stack traces potentially related to this issue, and if we can narrow it back down to one (i.e., if your current output matches what Lionel originally saw) it will make it easier to fix the issue. The stack trace you previously saw should have been fixed in #106. |
Oh right - sorry about that 😅.
|
Issue by lionel-nj
Jan 19, 2022
Originally opened as CUTR-at-USF#405
Summary:
Test sets fail when building the project from command line - which prevents the project from building.
Steps to reproduce:
After applying the fix suggested in #101, run
mvn package
at the root of the project.Expected behavior:
Tests pass and project builds. An executable jar should be generated in
target
.Observed behavior:
Failure in tests that prevent the project from building (see test reports.zip)
edu.usf.cutr.gtfsrtvalidator.api.resource.GtfsFeedTest
edu.usf.cutr.gtfsrtvalidator.test.queries.QueryTest
Interestingly, those test sets are successfully executed in IntelliJ.
"This might have something to do with the HSQLDB drivers on Mac, because those tests test queries against a HSQLDB instance using the JDBC drivers."
"I guess maybe IntelliJ is including something on the classpath that you're missing on command-line? Maybe the JDBC drivers?"
(from @barbeau).
Platform:
Mac M1
MacOS Big Sur 11.6 version
Java 11.0.11
The text was updated successfully, but these errors were encountered: