@WrRan
2016-11-24T08:24:17.000000Z
字数 962
阅读 1025
sails
Unit tests shouldn't lift the server (i.e. bind an HTTP server or WebSocket server to a port). Instead, they should bootstrap the minimal set of necessary components to test a particular method (or sometimes a group of methods, if it makes more sense.) The goal is to identify future breaking changes and isolate exactly what broke. This makes would-be issues easier to spot in advance, and real bugs easier to track down after the fact.
Since unit tests are more implementation-specific, we shouldn't unit test parts of Sails which are currently in flux or likely to change.
No one is currently working on this
No one is currently working on this