浏览代码

HUE-8888 [docs] Help about test run failing because of collect static

Romain 5 年之前
父节点
当前提交
99edc12dc8
共有 1 个文件被更改,包括 8 次插入4 次删除
  1. 8 4
      docs/docs-site/content/developer/development/_index.md

+ 8 - 4
docs/docs-site/content/developer/development/_index.md

@@ -512,13 +512,17 @@ To run a specific test in a class, use:
 
     build/env/bin/hue test specific <app><module>:<class><test_func>
 
-e.g.
+Note:
+
+When running the tests and seeing an error similar to:
+
+    ...
+    ValueError: The file 'desktop/js/bundles/hue/vendors~hue~notebook~tableBrowser-chunk-f7c8562ecf79bc8f1f16.js' could not be found with <django.contrib.staticfiles.storage.CachedStaticFilesStorage object at 0x7faf77042630>.
 
-    build/env/bin/hue test specific useradmin.tests:AdminTest.test_login
 
-Start up pdb on test failures:
+Re-building the collection of static files should fix it:
 
-    build/env/bin/hue test <args> --pdb --pdb-failure -s
+    ./build/env/bin/hue collectstatic
 
 ### Running the UI tests