-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #877 from phpDocumentor/docs-contributing
[DOCS] Add more contribution guidelines
- Loading branch information
Showing
5 changed files
with
119 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: "Bug report 🐛" | ||
description: "If something isn't working as expected 🤔." | ||
title: "[Bug]: " | ||
labels: ["bug", "triage"] | ||
|
||
body: | ||
- type: "textarea" | ||
attributes: | ||
label: "Summary" | ||
description: "Please describe your problem here" | ||
validations: | ||
required: true | ||
|
||
- type: "textarea" | ||
attributes: | ||
label: "Code snippet that reproduces the problem" | ||
description: | | ||
Please provide a minimal code snippet that reproduces the problem. If you have a larger code example, | ||
please provide a link to a repository or create a pull request that introduces a failing test case. | ||
- type: "textarea" | ||
attributes: | ||
label: "Expected output" | ||
description: "What did you expect to happen?" | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: "Support Question" | ||
url: "https://github.com/orgs/phpDocumentor/discussions" | ||
about: "We use GitHub issues only to discuss about bugs and new features. For this kind of questions about using the project, please use the discussions." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: "Feature request 🚀" | ||
description: "I have a suggestion (and may want to implement it 🙂)!" | ||
labels: ["feature", "triage"] | ||
|
||
body: | ||
- type: "textarea" | ||
attributes: | ||
label: "Feature request" | ||
description: "Please provide a clear description of what problem you are trying to solve and how would you want it to be solved." | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
============= | ||
Writing tests | ||
============= | ||
|
||
This page will help you to understand how to write tests to report a bug or cover a new feature. | ||
In this project we have 3 levels of tests: | ||
|
||
Integration tests: | ||
This level of tests allow you to test the whole process from parsing to rendering. Integration tests are | ||
not split as the other packages are. They are located in the ``tests/Integration/tests`` directory. and do exist | ||
of one or more input files and the expected output. They might even have their own configuration file if that's required. | ||
|
||
Functional tests: | ||
Functional tests are located in the ``tests/Functional`` directory. They cover individual elements of the processed | ||
input. They do exist of one input file and the expected output. As they do not cover the whole process of parsing to | ||
rendering, they cannot be used to test complex transformations. If you have a more complex use case you should have | ||
a look at the integration tests. | ||
|
||
Unit tests: | ||
Sometimes it's enough to test a single class in isolation. The unittests are part of the packages the test subject is | ||
located in. They are located in the ``tests`` directory. The tests are named after the class they are testing. | ||
|
||
Integration tests | ||
================= | ||
|
||
The integration tests can be seen as the easies way to write tests, as they are just like your normal use case. No internal | ||
knowledge of the parser or renderer is required. You just need to know what you want to test and how the input and output | ||
should look like. To create a new test you need to create a new directory in the ``tests/Integration/tests`` directory. | ||
The name of the directory should be the name of the test. The directory should contain at least one input file and one | ||
output file. Each test should have at least in index file. | ||
|
||
To make the output file more stable you can must use the following format:: | ||
|
||
<!-- content start --> | ||
<p>Your output here</p> | ||
<!-- content end --> | ||
|
||
The content start and end tags are used to extract the content from the output file. This will isolate the content from | ||
the rest of the output file. If you need to test the whole output file you should put your test in ``tests/Integration/tests-full``. |