瀏覽代碼

behat: add page (#3051)

Owen Voke 5 年之前
父節點
當前提交
752d45121f
共有 1 個文件被更改,包括 28 次插入0 次删除
  1. 28 0
      pages/common/behat.md

+ 28 - 0
pages/common/behat.md

@@ -0,0 +1,28 @@
+# behat
+
+> A PHP framework for Behaviour-Driven Development.
+> More information: <https://behat.org>.
+
+- Initialise a new Behat project:
+
+`behat --init`
+
+- Run all tests:
+
+`behat`
+
+- Run all tests from the specified suite:
+
+`behat --suite={{suite_name}}`
+
+- Run tests with a specific output formatter:
+
+`behat --format {{pretty|progress}}`
+
+- Run tests and output results to a file:
+
+`behat --out {{path/to/file}}`
+
+- Display a list of definitions in your test suites:
+
+`behat --definitions`