Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
In your log, it just say that your test case has failed.
Did you perform step 4 to link DB for the test cases to run against? Build Source Code on Windows#4.ConfigureDatasourceforTestCase
When running the "mvn clean install" , I am getting following error. How to solve this?
Results :
Tests in error:
testOrganizationChart(org.joget.directory.model.service.TestDirectoryManager)
Tests run: 3, Failures: 0, Errors: 1, Skipped: 0
INFO 17 Mar. 2021 13:07:24 bitronix.tm.BitronixTransactionManager - shutting down Bitronix Transaction Manager
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for wflow-app 7.0-SNAPSHOT:
[INFO]
[INFO] wflow-jdbc ......................................... SUCCESS [ 1.704 s]
[INFO] wflow-commons ...................................... SUCCESS [ 10.176 s]
[INFO] wflow-plugin-base .................................. SUCCESS [ 4.971 s]
[INFO] wflow-plugin-archetype ............................. SUCCESS [ 1.379 s]
[INFO] wflow-directory .................................... FAILURE [ 17.890 s]
[INFO] wflow-wfengine ..................................... SKIPPED
[INFO] wflow-core ......................................... SKIPPED
[INFO] wflow-consoleweb ................................... SKIPPED
[INFO] wflow-app .......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 37.110 s
[INFO] Finished at: 2021-03-17T13:07:25+10:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test (default-test) on project wflow-directory: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\ManjeetKaur\joget_src\jw-community\wflow-directory\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
When referring to "C:\Users\ManjeetKaur\joget_src\jw-community\wflow-directory\target\surefire-reports for the individual test results", I found following:
<testcase classname="org.joget.directory.model.service.TestDirectoryManager" name="testOrganizationChart" time="0.448">
<error message="[Assertion failed] - this expression must be true" type="java.lang.IllegalArgumentException">java.lang.IllegalArgumentException: [Assertion failed] - this expression must be true
at org.springframework.util.Assert.isTrue(Assert.java:92)
at org.springframework.util.Assert.isTrue(Assert.java:101)
at org.joget.directory.model.service.TestDirectoryManager.testOrganizationChart(TestDirectoryManager.java:155)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:252)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
</error>
</testcase>