Intended use of the Unit Testing built in to CodeIgniter

后端 未结 1 542
失恋的感觉
失恋的感觉 2021-02-07 03:43

In most framework unit testing implementations, you have a set of a tests and you execute those tests from a single [console] command. The tests run and a result is given. That

1条回答
  •  感情败类
    2021-02-07 04:07

    I've received an answer from another source and I want to post it here since I am aware of it.

    The basic answer is that the CI (CodeIgniter) unit test class is not intended like a traditional unit test suite (JUnit, NUnit, or python's unittest). In CI, the class is intended to be used within the target (the testing target's code base).

    To be clear: I'm not endorsing this nor am I sure this is the intended use of the CI unit_test class. This is just what I was told thus far. Perhaps others heard this too and can vote it up. If this is voted up or has support via comments, I'll mark this as an answer. I am still interested in differing opinions.

    0 讨论(0)
提交回复
热议问题