A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://bash-it.readthedocs.io/en/latest/contributing below:

Website Navigation


Contribution Guidelines — Bash-it documentation

Contribution Guidelines

When contributing a new feature, a bug fix, a new theme, or any other change to Bash-it, please consider the following guidelines. Most of this is common sense, but please try to stick to the conventions listed here.

Issues Pull Requests Code Style Unit Tests

When adding features or making changes/fixes, please run our growing unit test suite to ensure that you did not break existing functionality. The test suite does not cover all aspects of Bash-it, but please run it anyway to verify that you did not introduce any regression issues.

Any code pushed to GitHub as part of a Pull Request will automatically trigger a continuous integration build on GitHub Actions, where the test suite is run on both Linux and macOS. The Pull Request will then show the result of the CI build, indicating whether all tests ran fine, or whether there were issues. Please pay attention to this, Pull Requests with build issues will not be merged.

Adding new functionality or changing existing functionality is a good opportunity to increase Bash-it’s test coverage. When you’re changing the Bash-it codebase, please consider adding some unit tests that cover the new or changed functionality. Ideally, when fixing a bug, a matching unit test that verifies that the bug is no longer present, is added at the same time.

To run the test suite, simply execute the following in the directory where you cloned Bash-it:

This command will ensure that the Bats Test Framework is available in the local test_lib directory (Bats is included as a Git submodule) and then run the test suite found in the test folder. The test script will execute each test in turn, and will print a status for each test case.

When adding new test cases, please take a look at the existing test cases for examples.

The following libraries are used to help with the tests:

When verifying test results, please try to use the assert functions found in these libraries.

Features Themes Adding a Screenshot

In order to add a new screenshot, use the gh-pages branch. Add your new screenshot to the docs/images folder, and open a PR. In the Themes page, see the other screenshots to know what kind of link you should use.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4