GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ApprovalTests.cpp/doc/Contributing.md at master · approvals/ApprovalTests.cpp

Expand file tree

/

Contributing.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
107 lines (68 loc) · 4.78 KB
/

Contributing.md

Copy path

File metadata and controls

107 lines (68 loc) · 4.78 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Contributing to ApprovalTests.cpp

Contents

  • Contributing - pairing and pull requests
    • Definition of Done
  • Code of Conduct
  • Formatting Code
  • Updating the simulated single-header
  • Coding Patterns
  • Documentation
  • Releases
  • Running shell scripts in cygwin

Contributing - pairing and pull requests

The default way to add to most repositories is to fork and then create a pull-request.

This is NOT the default way to contribute to Approval Tests!

If you have something that you would like Approval Tests to have, including a bug you would like removed, we suggest you set up a pairing session (usually Skype or Facetime) with either Llewellyn or Clare or both.

A typical session lasts between 60 to 90 minutes. We do the work directly on master, on our own machines, with screen-sharing, and commit and push the results throughout the session. This results in quicker, higher-quality work. It gives us a better understanding of how people are using Approval Tests and the problems they encounter with it, and these sessions are also quite fun.

We use github's "co-author" feature, so everyone in the pairing session gets credit for the work. Virtually this entire project has been developed in this way, and is stronger for it.

Example co-author text, for use if not using the GitHub Desktop application:

Co-Authored-By: Llewellyn Falco <[email protected]>

We use Arlo's Commit Notation to prefix most commits, to indicate their level of risk.

Definition of Done

Note: Reminder for Clare and Llewellyn

  • Tests
  • Documentation
    • Sample code
    • Copy+pastable template (if appropriate)
    • A link on Features
    • A link on build/relnotes_x.y.z.md
    • Links on other appropriate places
  • Check the Dashboard (after pushing)
  • Retrospective (as an experiment) on what we learned from the work

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Formatting Code

If possible, please configure your editor to use this repository's .clang-format file.

Instructions for this are available:

  • CLion:
    • Settings/Preferences | Editor | Code Style | Turn on "Enable ClangFormat with clangd server" checkbox.
    • More information: ClangFormat as Alternative Formatter

There is a script to apply clang-format to the whole project: scripts/reformat_code.sh.

We have a CI job called clang-format that checks for code not correctly formatted: .github/workflows/github_actions_build.yml.

Updating the simulated single-header

After adding new header files to the library, we need to update ApprovalTests/ApprovalTests.hpp.

This is done by running scripts/create_simulated_single_header.sh:

cd ApprovalTests.cpp
./scripts/create_simulated_single_header.sh

Coding Patterns

See Static variables for header-only releases.

Documentation

We welcome improvements to the documentation! The page Maintaining the Docs describes how we manage the documentation files.

Releases

  • Everything for releases is in the build directory
  • There's more information in How to Release

Running shell scripts in cygwin

To run .sh in cygwin on Windows, add these lines to ~/.bash_profile, and then re-start cygwin:

export SHELLOPTS
set -o igncr

Credit


Back to User Guide

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.