IBMStreams / streamsx.testing

Provides samples, utilities and documentation on how to test Streams toolkits and applications
https://ibmstreams.github.io/streamsx.testing/
Apache License 2.0
1 stars 1 forks source link

Examples and guidelines needed for testing application code #2

Closed chanskw closed 3 years ago

chanskw commented 7 years ago

I am writing this up for the initial discussions on what examples and guidelines are needed to help customers test their Streams application. I think we need test examples for the following:

@ddebrunner @joergboe What are your thoughts on this?

ddebrunner commented 7 years ago

Agreed, plus just to note that for these items it should be noted (with examples) that the all/portions of underlying code can be tested outside of a Streams context using standard Java/Scala/Python testing frameworks.

ddebrunner commented 7 years ago

As reference:

chanskw commented 7 years ago

I added @ddebrunner example about how to test with Python unittest to a wiki here: https://github.com/IBMStreams/streamsx.testing/wiki/Testing-Primitive-Operators-with-Python-Unittest

joergboe commented 7 years ago

The main focus of a test framework for Streams Toolkits must be the fact, that test of all kinds of Streams operators and functions is possible in the target Streams environment in a transparent way.

chanskw commented 7 years ago

@joergboe can you please elaborate what "transparent way" means to you? If you think of the Junit framework that is being used in the product, what are some of the pain points that you are trying to address in your scripting framework?

markheger commented 7 years ago

wiki is incomplete: https://github.com/IBMStreams/streamsx.testing/wiki/Testing-Primitive-Operators-with-Python-Unittest You need to describe a) that the FTP composite/toolkit in tk directory needs to indexed externally with spl-make-toolkit b) you need to decribe, how to set VCAP_SERVICES and STREAMING_ANALYTICS_SERVICE_NAME for bluemix test

ddebrunner commented 7 years ago

I don't think that was meant to be an "official" example, it was a copy & paste from a discussion in another issue.

chanskw commented 7 years ago

Right.. I just want to make sure that we do not lose the information. It was used as the base to create a more complete example.

https://github.com/IBMStreams/streamsx.testing/tree/develop/examples/operators

Feel free to add the missing information to the wiki or the example. I think we all have write access to the wiki page. Thanks!

ddebrunner commented 7 years ago

I think rather than updating the wiki, the focus should be on the real example started by @chanskw