As a developer, I find very important being able to unit test the code I implement for extending the Spotfire functionality: new visualizations, tools, etc.
The documentation that comes together with the SDK has good examples about the different ways in which the Spotfire functionality can be extended. However, there are no examples on how to unit test those examples.
Unit testing code that uses "normal" libraries is not an issue but, what about those lines of code that use specific Spotfire objects? Such as the Context in which Spotfire is running, the AnalysisApplication object type that is created automatically when running the application, the Document that would normally have a visualization referenced... It would be great having an example that showed how to mock these objects so that the methods that use them can also be tested.
We need a way to run Spotfire in headless mode (similar to automation services) in order to perform unit testing ... Please provide an API to create an AnalysisDocument object without the need to open full Spotfire