Skip to content
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

Add test execution at the end of build process #480

Closed
masesdevelopers opened this issue Jun 4, 2024 · 5 comments · Fixed by #481, #485, #488, #507 or #509
Closed

Add test execution at the end of build process #480

masesdevelopers opened this issue Jun 4, 2024 · 5 comments · Fixed by #481, #485, #488, #507 or #509
Assignees
Labels
enhancement New feature or request github_actions Pull requests that update GitHub Actions code KNet KNet related issue

Comments

@masesdevelopers
Copy link
Contributor

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

@masesdevelopers masesdevelopers added enhancement New feature or request KNet KNet related issue github_actions Pull requests that update GitHub Actions code labels Jun 4, 2024
@masesdevelopers masesdevelopers self-assigned this Jun 4, 2024
@masesdevelopers
Copy link
Contributor Author

Reopen with #481 (comment)

@masesdevelopers
Copy link
Contributor Author

The build workflow shall report the error when the following line of code

Console.WriteLine($"Forcibly exit since no {NonParallelLimit} record was received within 1 minute.");
it is activated, however the whole workflow shall not fail.

@masesdevelopers
Copy link
Contributor Author

Add tests on MacOS

@masesdevelopers
Copy link
Contributor Author

For MacOS and Windows try to start local ZooKeeper and Apache Kafka broker then execute the tests

@masesdevelopers
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment