com.alibaba.fastjson2:fastjson2:2.0.35 is causing issue with JSONObjectTest.test2 module UT
- Dominant language
- Java
- Stars
- 4.4k
- Forks
- 613
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 6
Description
[root@71e03f7bb547 fastjson2]# ./mvnw test gives error with two modeules during UT tests validation. build is successful
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] JSONObjectTest.test2:1401 expected: but was:
[ERROR] TypeUtilsTest.toStringTestJSON:602 expected: but was:
[INFO]
[ERROR] Tests run: 6250, Failures: 2, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for fastjson2-parent 2.0.35:
[INFO]
[INFO] fastjson2-parent ................................... SUCCESS [ 2.462 s]
[INFO] fastjson2 .......................................... FAILURE [01:39 min]
[INFO] fastjson2-extension ................................ SKIPPED
[INFO] fastjson2-benchmark ................................ SKIPPED
[INFO] fastjson2-codegen .................................. SKIPPED
[INFO] codegen-test ....................................... SKIPPED
[INFO] fastjson2-extension-spring5 ........................ SKIPPED
[INFO] example-spring-test ................................ SKIPPED
[INFO] fastjson1-compatible ............................... SKIPPED
[INFO] fastjson2-kotlin ................................... SKIPPED
[INFO] safemode-test ...................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:42 min
[INFO] Finished at: 2024-07-11T06:34:10Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0:test (default-test) on project fastjson2: There are test failures.
[ERROR]
[ERROR] Please refer to /root/fastjson2/core/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :fastjson2
Contributor guide
Research direction
Run ./mvnw test and inspect the failures in JSONObjectTest.test2 at line 1401 and TypeUtilsTest.toStringTest at line 602. Check the individual reports under core/target/surefire-reports to compare the expected and actual values; done means both tests pass without the two reported failures.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100