Skip to main content

[RELEASE] FS Test Tools are available on GitHub now

Comments

1 comment

  • Zendesk API User
    Author: tenter - 3/13/2019 7:49

    We decided internally to not continue the test tools library and discourage its usage. Therefore, we removed the repository from github and (now) also removed all dependencies to the library. The main reason behind this decision is, that extensive mocking of FirstSpirit classes (or any other product or framework) gets dangerous pretty fast, because of the programmer's tendency to make assumptions about internals. Those internals can be subject to changes at any time. Or the assumptions can be wrong from the beginning on. This leads to a false feeling of safety.

    All in all, we want to encourage everybody to instead do the following:

    * Inject dependencies to FirstSpirit classes where necessary to improve testability of your own code independently from other's code

    * Write integration tests that use the real FirstSpirit API directly, for example with a test server instance

    We had a good experience writing tests this way - let us know about your experience and feel free to report any problems .. or challenges you had :smileyhappy:

    Regards,

    Hannes

    0

Please sign in to leave a comment.