<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # Testing standards and style guidelines > 原文:[https://docs.gitlab.com/ee/development/testing_guide/](https://docs.gitlab.com/ee/development/testing_guide/) * [Overview](#overview) * [Testing levels](#testing-levels) * [Testing best practices](#testing-best-practices) * [Frontend testing standards and style guidelines](#frontend-testing-standards-and-style-guidelines) * [Flaky tests](#flaky-tests) * [GitLab tests in the Continuous Integration (CI) context](#gitlab-tests-in-the-continuous-integration-ci-context) * [Review apps](#review-apps) * [Testing Rake tasks](#testing-rake-tasks) * [End-to-end tests](#end-to-end-tests) * [Migrations tests](#migrations-tests) # Testing standards and style guidelines[](#testing-standards-and-style-guidelines "Permalink") 本文檔介紹了自動測試 GitLab 項目的各種指南和最佳實踐. 它是對[Thoughtbot 測試風格指南](https://github.com/thoughtbot/guides/tree/master/style/testing)的*擴展* . 如果本指南定義的規則與 Thoughtbot 指南相抵觸,則以本指南為準. 可能會逐字重復某些準則以強調其重要性. ## Overview[](#overview "Permalink") GitLab 建立在[Ruby on Rails](https://rubyonrails.org/)之上,并且我們將[RSpec](https://github.com/rspec/rspec-rails#feature-specs)用于所有后端測試,而[Capybara](https://github.com/teamcapybara/capybara)用于端到端集成測試. 在前端,我們將[Jest](https://jestjs.io/)和[Karma](http://karma-runner.github.io/) / [Jasmine](https://jasmine.github.io/)用于 JavaScript 單元和集成測試. 以下是兩篇很棒的文章,每個人都應該閱讀它們,以了解自動化測試的含義以及其原理是什么: * [五因素測試](https://madeintandem.com/blog/five-factor-testing/) :為什么我們需要測試? * [自動化測試的原則:測試](https://www.lihaoyi.com/post/PrinciplesofAutomatedTesting.html)級別. 確定測試的優先級. 測試費用. ## [Testing levels](testing_levels.html)[](#testing-levels "Permalink") Learn about the different testing levels, and how to decide at what level your changes should be tested. ## [Testing best practices](best_practices.html)[](#testing-best-practices "Permalink") 關于編寫良好測試的所有知識,包括:測試設計,RSpec,FactoryBot,系統測試,參數化測試等. ## [Frontend testing standards and style guidelines](frontend_testing.html)[](#frontend-testing-standards-and-style-guidelines "Permalink") 您應該知道的有關如何編寫良好的前端測試的所有知識:業力,測試承諾,存根等. ## [Flaky tests](flaky_tests.html)[](#flaky-tests "Permalink") 什么是片狀測試,我們遇到的不同類型的片狀測試,以及我們如何處理它們. ## [GitLab tests in the Continuous Integration (CI) context](ci.html)[](#gitlab-tests-in-the-continuous-integration-ci-context "Permalink") GitLab 測試套件如何在 CI 上下文中運行:設置,緩存,工件,并行化,監視. ## [Review apps](review_apps.html)[](#review-apps "Permalink") 如何為 GitLab CE / EE 設置評論應用程序以及如何使用它們. ## [Testing Rake tasks](testing_rake_tasks.html)[](#testing-rake-tasks "Permalink") 您應該了解的有關如何測試 Rake 任務的所有知識. ## [End-to-end tests](end_to_end/index.html)[](#end-to-end-tests "Permalink") 您應該了解有關如何使用[GitLab QA](https://gitlab.com/gitlab-org/gitlab-qa)測試框架進行端到端測試的所有知識. ## [Migrations tests](testing_migrations_guide.html)[](#migrations-tests "Permalink") 您應該了解的有關如何測試遷移的一切. [Return to Development documentation](../README.html)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看