Description[Gin] Add a basic unit testing framework
Previously, we were using JavaScript bindings to gtest to unit test JavaScript
code in Gin and Mojo. The gtest bindings were very basic and not very
idiomatic.
This CL introduces a simple AMD module call "expect" to help us write more
idiomatic unit tests. The API for "expect" is based on the popular Jasmine unit
testing framework for node.js. I investigated just importing one of Node's many
unit testing frameworks, but they all try to do too much (e.g., drive the
entire test harness via Node's file system interface).
The "expect" modules doesn't try to drive the testing process. We just let
gtest handle that. Instead, "expect" just provides a simple language in which
to write test assertions. We'll likely evolve our testing strategy over time,
but hopefully this CL is an improvement over the primitive gtest bindings.
[email protected]
[email protected]
BUG=none
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237145
Patch Set 1 #Patch Set 2 : Remove extra function #
Total comments: 1
Patch Set 3 : Make webview_licenses.py happy #
Messages
Total messages: 13 (0 generated)
|