Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 4.06 KB

CONTRIBUTING.md

File metadata and controls

50 lines (38 loc) · 4.06 KB

Contributing to TcUnit

We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:

  • Reporting a bug
  • Discussing the current state of the code
  • Submitting a fix
  • Proposing new features
  • Becoming a maintainer

We Develop with Github

We use github to host code, to track issues and feature requests, as well as accept pull requests.

We Use Github Flow, So All Code Changes Happen Through Pull Requests

Pull requests are the best way to propose changes to the codebase (we use Github Flow). We actively welcome your pull requests:

  1. Fork the repo and create your branch from master.
  2. If you've added new functionality, it's necessary to add tests. For this there is a separate test project called TcUnit-Verifier. In that project there are several test suites defined to test the different functionality of TcUnit. Please read the README.MD in that project for further instructions. No new functionality will be accepted without any proper tests.
  3. If you've changed APIs, send an e-mail with the API change so that the official homepage can be updated.
  4. Ensure the test suite passes.
  5. Issue that pull request!

Any contributions you make will be under the MIT Software License

In short, when you submit code changes, your submissions are understood to be under the same MIT License that covers the project. Feel free to contact the maintainers if that's a concern.

Report bugs using Github's issues

We use GitHub issues to track public bugs. Report a bug by opening a new issue; it's that easy!

Write bug reports with detail, background, and sample code

Great Bug Reports tend to have:

  • A quick summary and/or background
  • Steps to reproduce
    • Be specific!
    • Give sample code if you can.
  • What you expected would happen
  • What actually happens
  • Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)

Use a Consistent Coding Style

  • Make sure to edit the project with the same version of Visual Studio as the master branch. All software (TcUnit and TcUnit-Verifier) has been developed using Visual Studio 2013. Note that VS2013 shell (provided with TwinCAT 3.1.4022.x) can't open the TcUnit-Verifier_DotNet (as it's a .NET/C# project). Instead it's recommended to use VS2013 community edition which can be used both for TwinCAT and .NET/C# projects
  • Make sure to edit the project with the same build of TwinCAT XAE as the master branch. Which build of TwinCAT that is currently used can be deduced from the TcUnit.tsproj-file. The "TcVersion"-attribute will give you the version of TwinCAT that was lastly used to edit the project. The build is the third number from the left (for example 4020, 4022 or 4024)
  • Make sure that your TwinCAT development environment uses spaces instead of tabs. The default behaviour of the TwinCAT development environment is to use tabs so it needs to be changed, which can be done according to this guide
  • The prefixes of naming of function blocks/variables/etc from the Beckhoff TwinCAT3 identifier/name conventions are ignored as a modern integrated development environment (as Visual Studio) gives all the hints/information of data types etc

License

By contributing, you agree that your contributions will be licensed under its MIT License.

References

This document was adapted from briandk's excellent contribution guidelines template.