Alien-SwaggerUI
view release on metacpan or search on metacpan
CONTRIBUTING.md view on Meta::CPAN
this module's prereqs in the `local/` directory:
```
carton install
```
Once the prereqs are installed, you can use `carton exec prove -lr t`
to run all the tests with the right prereqs. Putting `carton exec` in
front of the command makes sure Perl uses the right library
directories.
### Using `prove` to run tests
Perl comes with a utility called `prove` which runs tests and gives
a report on failures. To run the test suite with `prove`, do:
```
prove -lr t
```
This will run all the tests in the `t` directory, recursively, while
adding the current `lib/` directory to the library path.
You can run individual test files more quickly by passing them as
arguments to prove:
```
prove -l t/my-test.t
```
### Using Dist::Zilla to install prereqs and run tests
Once you have installed Dist::Zilla via `cpanm Dist::Zilla`, you can get
this distributions's dependencies by doing:
```
dzil listdeps --author --missing | cpanm
```
Once all that is done, testing is as easy as:
```
dzil test
```
## Before you Submit Your Contribution
### Copyright and License
All contributions are copyright their respective owners, so make sure you
agree with the project license (found in the LICENSE file) before
contributing.
The list of Contributors is calculated automatically from the Git commit
log. If you do not wish to be listed as a contributor, or if you wish to
be listed as a contributor with a different e-mail address, tell me so
in the ticket or e-mail me at doug@preaction.me.
### Code Formatting and Style
Please try to maintain the existing code formatting and style.
* 4-space indents
* Opening brace on the same line as the opening keyword
* Exceptions made for lengthy conditionals
* Closing brace on the same column as the opening keyword
### Documentation
Documentation is incredibly important, and contributions will not be
accepted until documentated.
* Methods must be documented inline, above the code of the method
* Method documentation must include name, sample usage, and description
of inputs and outputs
* Attributes must be documented inline, above the attribute declaration
* Attribute documentation must include name, sample value, and
description
* User-executable scripts must be documented with a short synopsis,
a longer description, and all the arguments and options explained
* Tests must be documented with the purpose of the test and any useful
information for understanding the test.
### New Prerequisites
Though this project has a `cpanfile`, a `Makefile.PL`, and maybe even
a `Build.PL`, these files are auto-generated and should not be edited.
To add new prereqs, you must add them to the `dist.ini` file in the
following sections:
* `[Prereqs]` - Runtime requirements
* `[Prereqs / TestRequires]` - Test-only requirements
* `[Prereqs / Recommends]` - Runtime recommendations, for optional
modules
* `[Prereqs / TestRecomments]` - Test-only recommendations, for optional
modules
If the section doesn't already exist, you can add it to the bottom of
the `dist.ini` file.
The `Recommends` and `TestRecommends` will be automatically installed by
Travis CI to test those parts of the code.
OS-specific prerequisites can be added using the
[Dist::Zilla::Plugin::OSPrereqs](http://metacpan.org/pod/Dist::Zilla::Plugin::OSPrereqs)
module.
( run in 0.326 second using v1.01-cache-2.11-cpan-119454b85a5 )