diff --git a/build-test.js b/build-test.js
index <HASH>..<HASH> 100755
--- a/build-test.js
+++ b/build-test.js
@@ -1,3 +1,15 @@
 #!/usr/bin/env node
 
-require('./')()
+process.env.NODE_ENV = 'test'
+
+var path = require('path')
+var test = null
+
+try {
+  test = require(path.join(process.cwd(), 'package.json')).prebuild.test
+} catch (err) {
+  //  do nothing
+}
+
+if (test) require(path.join(process.cwd(), test))
+else require('./')()
support prebuild.test for test script setup