Closed masesdevelopers closed 1 week ago
The build workflow shall report the error when the following line of code https://github.com/masesgroup/KNet/blob/b9d7372b0b7497b40ee504699704bfa055e95e6c/tests/net/KNetTest/Program.cs#L463 it is activated, however the whole workflow shall not fail.
Add tests on MacOS
For MacOS and Windows try to start local ZooKeeper and Apache Kafka broker then execute the tests
Sometime tests done in net462 reports:
Unhandled Exception: Java.Lang.NullPointerException
at MASES.JCOBridge.C2JBridge.JVMInterop.JavaClass.Invoke(String methodName, Object[] args, Object& result)
at MASES.JCOBridge.C2JBridge.JVMInterop.JavaClass.Invoke(String methodName, Object[] args)
at MASES.JCOBridge.C2JBridge.JVMBridgeBase`1.SExecute[TReturn](IJavaType clazz, String methodName, Object[] args)
at MASES.KNet.Serialization.SerDes`2..ctor() in /_/src/net/KNet/Specific/Serialization/SerDes.cs:line 158
at MASES.KNetTest.Program.Main(String[] args) in /_/tests/net/General/KNetTest/Program.cs:line 140
probably the problem is the same solved in #509 moving out from main initialization of object which needs a started JVM.
Is your feature request related to a problem? Please describe. Currently no tests are executed.
Describe the solution you'd like The build workflow can execute some unit tests to verify execution. Meanwhile the test projects can be enhanced to use the Microsoft.NET.Test.Sdk and/or Microsoft.TestPlatform.TestHost
Describe alternatives you've considered N/A
Additional context N/A