github.com/haalcala/mattermost-server-change-repo/v5@v5.33.2/tests/README.md (about)

     1  # Testing Text Processing  
     2  The text processing tests located in the [doc/developer/tests folder](https://github.com/mattermost/platform/tree/master/doc/developer/tests) are designed for use with the `/test url` command. This command posts the raw contents of a specified .md file in the doc/developer/test folder into Mattermost.
     3  
     4  ## Turning on /test  
     5  Access the **System Console** from the Main Menu. Under *Service Settings* make sure that *Enable Testing* is set to `true`, then click **Save**. You may also change this setting from `config.json` by setting `”EnableTesting”: true`. Changing this setting requires a server restart to take effect.
     6  
     7  ## Running the Tests  
     8  In the text input box in Mattermost, type: `/test url [file-name-in-testing-folder].md`. Some examples:
     9  
    10  `/test url test-emoticons.md`  
    11  `/test url test-links.md`
    12  
    13  #### Notes:    
    14  1. If a test has prerequisites, make sure your Mattermost setup meets the requirements described at the top of the test file.
    15  2. Some tests are over 4000 characters in length and will render across multiple posts.
    16  
    17  ## Manual Testing  
    18  It is possible to manually test specific sections of any test, instead of using the /test command. Do this by clicking **Raw** in the header for the file when it’s open in GitHub, then copy and paste any section into Mattermost to post it. Manual testing only supports sections of 4000 characters or less per post.
    19  
    20  ## Test plugins
    21  
    22  There are two test plugins: `testplugin.tar.gz` and `testplugin2.tar.gz`. These are use in some integration tests in the `api4` package. Any changes to the plugin bundles require updating the coresponding signatures.
    23  
    24  First, import the public and privat development key:
    25  ```
    26  $ gpg --import ./development-public-key.gpg
    27  $ gpg --import ./development-private-key.asc
    28  ```
    29  
    30  This has to be done only once.
    31  
    32  Then update the sigantures:
    33  ```
    34  $ gpg -u F3FACE45E0DE642C8BD6A8E64C7C6562C192CC1F --verbose --personal-digest-preferences SHA256 --detach-sign testplugin.tar.gz
    35  $ gpg -u F3FACE45E0DE642C8BD6A8E64C7C6562C192CC1F --verbose --personal-digest-preferences SHA256 --detach-sign --armor testplugin.tar.gz
    36  $ gpg -u F3FACE45E0DE642C8BD6A8E64C7C6562C192CC1F --verbose --personal-digest-preferences SHA256 --detach-sign testplugin2.tar.gz
    37  $ gpg -u F3FACE45E0DE642C8BD6A8E64C7C6562C192CC1F --verbose --personal-digest-preferences SHA256 --detach-sign --armor testplugin2.tar.gz
    38  
    39  Finally, include the updates bundles and signatures in your commit.