Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

docs: add docs for testing (#3463)

Danny Xu65ed5332160d
diff --git a/docs/testing.md b/docs/testing.md
new file mode 100644
index 0000000000..6845042cfc
--- /dev/null
+++ b/docs/testing.md
@@ -0,0 +1,18 @@
+# Testing
+
+## Backend
+
+Backend testing includes both unit testing and integration testing. Because manual testing is less efficient, all new features or code changes need defence from automated testing. Without it, no one knows when things will break.
+
+All the Go integration tests is at [tests directory](https://github.com/bytebase/bytebase/tree/main/tests). You can use the following command to run all tests or one test.
+
+```shell
+alias t="go test --tags=mysql -v -run "
+cd tests
+# This will run all integration tests.
+t ./...
+# This will run one test.
+t TestName
+```
+
+For every PR, there is GitHub action to run all integration test. If there is any failure, you can use keyword "FAIL:" to find the failed test and run the test on local workstation to troubleshoot issues.
\ No newline at end of file