Skip to content

Like Tester but with Ch

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

devzbysiu/chester

chester

Like Tester but with Ch

CI status badge Code coverage License

Built with πŸ¦€

About

Chester is a daemon running in the background. It listens for the changes in the project you are working on and after every change it runs the tests. The results are exposed via REST API on local socket, so you can build your own software on top of that.

Example use of chester: Always On Stats - display code statistics using small desktop widget.

AOS

Note: Keep in mind the GIF above is a separate project which uses chester. Head over to AOS for details how to install the widget and to learn how the status is shown. Chester is designed as an API you can build upon.

State Changes

The next step is not triggered unless the previous one is completed with success.

                                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                                    β”‚                      β”‚
                                    β”‚  Watch for changes   β”‚
                                    β”‚                      β”‚
                                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                               β”‚
                                               β”‚
                                               β”‚Change detected
                                               β”‚
                                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                                    β”‚                      β”‚
                                    β”‚       Run Check      β”‚
                                    β”‚                      β”‚
                                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                               β”‚
                                               β”‚
                                               β”‚Check passed
                                               β”‚
                                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                                    β”‚                      β”‚
                                    β”‚      Run Tests       β”‚
                                    β”‚                      β”‚
                                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                               β”‚
                                               β”‚
                                               β”‚Tests passed
                                               β”‚
                                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                                    β”‚                      β”‚
                                    β”‚  Update Tests Index  β”‚
                                    β”‚                      β”‚
                                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                               β”‚
                                               β”‚
                                               β”‚Tests changed
                                               β”‚
                                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                                    β”‚                      β”‚
                                    β”‚  Run Code Coverage   β”‚
                                    β”‚                      β”‚
                                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                    

Chester API

Check status

curl --unix-socket "/run/user/$(id -u)/chester.sock" http://chester/check/status

Tests status

curl --unix-socket "/run/user/$(id -u)/chester.sock" http://chester/tests/status

Coverage status

curl --unix-socket "/run/user/$(id -u)/chester.sock" http://chester/coverage/status

Update repository on which tests are running

curl --unix-socket "/run/user/$(id -u)/chester.sock" \
  -XPUT -H "Content-Type: application/json" \
  -d '{"repo_root": "<new repo path here>"}' \
  http://chester/repo/root

Roadmap

  • Check status
  • Clippy status
  • Tests status
  • Code coverage
  • Project quality
    • Cyclomatic Complexity
    • Halstead Metrics (Effort to maintain code, difficulty to understand code etc.)
    • Maintainability Index

Installation

cargo install --git https://github.com/devzbysiu/chester

Configuration

--- TODO ---

License

This project is licensed under either of

At your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Like Tester but with Ch

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published