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
Live Instrument integration testing #515
Comments
@abdlquadri, I implemented the first task to give you more examples of how these tests should be designed. I also show how you should handle when the data returned looks invalid (i.e. comment it out and describe what's failing). You can see how I solved the first task here: 29b9710 |
@BFergerson Thanks for these pointers. |
@BFergerson I was working the composite data types tests and noticed a test failure with I switched to master to confirm, noticed the same result:
They fail with:
Could you please confirm this behavior on your end? |
You likely need to wait ~30 seconds before running tests. You can use this to check if the platform is fully started: curl -k --request GET \
--url https://localhost/health \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJkZXZlbG9wZXJfaWQiOiJzeXN0ZW0iLCJjcmVhdGVkX2F0IjoxNjU5NzA0NTkwNzY5LCJleHBpcmVzX2F0IjoxNjkxMjQwNTkwNzcwLCJpYXQiOjE2NTk3MDQ1OTB9.ISeT9ygqOvjSgH7ydwDEKLfkxfSMDhopAl0qMpkqMJ9LldHHozWVVD4J9kZzCXJHa105bQ2m8Yt2XMvrv1_rI74XzSCBnrE3ThCHsHw-q9vDwArjxfl7laDpA1ndASpRWxxMMC0O-Ofl8b5cdpqpXsysACG-A7Z0SlJbidOajJQk2pRxhn5dxJ_zifjLRTEH9QishD9IDeU1OOF2KiuycNFoiRtJXuMIgWoqsRcC__8cAU5CyjQieCpltiuiZ_iYLf9l65PvjnANfN8R2zkZvYUEDEWoMOJcWTv6IuSdwJvMQeRxflVlUU1ZWN4-RTTGcaQxzw4j53fIZZjGplVeCQiHS_V5nw99pNl2idJyJZvQiDN0iNbcRCLaETZHQCIlu19qgAszfP9HesQf6xPMHJnhglMbP5Tmo1lst3i65f2yJbybH6uPxLfJGIo3XisFAVeHQgY0D34eM4ElcYyHPLk16DvJczmtkuEPxGPlwzBRLoWXv8GOC4T0kfGEctCB9ZbgLM0s-KwpH4AB9bBlt4EgLY3UzNxatF8FV8Q9TJMPXnFpkuO0Ai_VxhIxd5eQ-a56OmvjXOHKY_0zO5XvkNOd0MsWXdVmjlHbgH15bpQmKNoKCvc_wcc4wWbqG1Llad10-gSh0Sf2jsWVQ3ZoHjDaa7qoHFPpNn3tQej5XKY' You could also just check the platform logs and wait for:
Specifically: |
@abdlquadri, take a look at https://github.com/sourceplusplus/live-platform/blob/master/platform/processor/live-instrument/src/test/kotlin/integration/SimplePrimitivesLiveInstrumentTest.kt for the new live instrument integration test structure.
This is a self-contained test that adds a live breakpoint to itself and verifies data types and values. It uses dynamic line numbers through the use of
addLineLabel(labelName)
. This allows you to build tests without having to worry about line numbers changing and supports adding multiple line number labels for more complex tests.I'll add more tests as I think of them but to get started please add tests verifying:
Live Breakpoint
LiveVariablePresentation
are formatted correctlyLive Log
Live Meter
Live Span
If you need me to clarify anything, please let me know.
The text was updated successfully, but these errors were encountered: