Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Commit

Permalink
Merge pull request #288 from tuncer/fix-176
Browse files Browse the repository at this point in the history
Fix #176
  • Loading branch information
ferd committed Jun 13, 2014
2 parents fe16668 + cb52df9 commit 992a8f0
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions CONTRIBUTING.md
Expand Up @@ -36,6 +36,37 @@ Do not commit to master in your fork.

Provide a clean branch without merge commits.

Tests
-----

As a general rule, any behavioral change to rebar requires a test to go with it. If there's
already a test case, you may have to modify that one. If there isn't a test case or a test
suite, add a new test case or suite in `inttest/`. [retest](https://github.com/dizzyd/retest) based tests are preferred, but
we also have EUnit tests in `test/`.

Say you've added a new test case in `inttest/erlc`. To only execute the modified suite,
you would do the following:
```sh
# First we build rebar and its deps to also get `deps/retest/retest`
$ make debug deps
# Now we can test the modified erlc suite
$ deps/retest/retest -v inttest/erlc
```

To test EUnit tests, you would do:
```sh
$ make debug
$ ./rebar -v eunit
```

You can also run `make test` to execute both EUnit and [retest](https://github.com/dizzyd/retest) tests as `make check` does.

Credit
------

To give everyone proper credit in addition to the git history, please feel free to append
your name to `THANKS` in your first contribution.

Committing your changes
-----------------------

Expand Down

0 comments on commit 992a8f0

Please sign in to comment.