Regularized unit testing framework.
This commit is contained in:
@@ -183,7 +183,7 @@ static int pmain(lua_State *L)
|
||||
LuaStack::register_all_userdata(L);
|
||||
|
||||
// Initialize the builtins, then copy a snapshot of the
|
||||
// builtins to the registry. This will allow us to restore
|
||||
// builtins to the registry. The snapshot will allow us to restore
|
||||
// the builtins during source_rebuild operations.
|
||||
source_install_and_snapshot_builtins(L);
|
||||
|
||||
@@ -193,6 +193,9 @@ static int pmain(lua_State *L)
|
||||
// Rebuild the global environment.
|
||||
source_rebuild(L);
|
||||
|
||||
// Run unit tests.
|
||||
source_run_unittests(L);
|
||||
|
||||
dotty(L);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user