Skip to Main Content
Spotfire Ideas Portal
Status Future Consideration
Product Spotfire
Categories API
Created by Guest
Created on Mar 3, 2017

API & Examples for unit testing Spotfire extensions

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.

  • Attach files
  • Guest
    Reply
    |
    Feb 12, 2020

    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