-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit improves performance by allowing to reduce the amount of data that is included in instrumented files and the amount of data sent to the node-coverage server with the submit method. There are two kinds of data: - "staticInfo": data about the file itself (list of statement ids, condition ids, function ids, highlighted code) - "run": info about the code that was actually run. This includes the counters for each statement, condition or function that were actually executed at least once. There is normally no need to include the "staticInfo" part in the instrumented files and have that info be sent to the browser and back to the server. It is only needed on the server, along with the "run" part to compute and display coverage results on the server. This commit clearly separates those two kinds of information and allows to create a JSON file containing the static part which will allow not to store it in instrumented files themselves, thus reducing the size of instrumented files and improving performance when calling submit. This commit also removes the stack of all function calls that was built when function coverage was enabled, as it is usually very big, takes a lot of time to be sent to the server, and is not very useful. Instead, there is now a counter for each function in the same way as it is done for statement coverage.
- Loading branch information
Showing
19 changed files
with
3,927 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
language: node_js | ||
node_js: | ||
- 0.6 | ||
- 0.8 | ||
- 6.9.1 | ||
before_install: | ||
- npm install -g [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.