需要在代码中先设定package.path的值 package.path=[[E:\3SG\Test\luaunit-master\?.lua;]] .. package.pathluaunit = require('luaunit') 相关文章: