emacs-ipython-notebook/CONTRIBUTING.md

48 lines
1.5 KiB
Markdown
Raw Normal View History

Getting started
---------------
Thank you for contributing! EIN development will work best in a UNIX environment.
Fork the repo on github. Clone the fork to your home directory.
2012-09-28 01:59:26 +02:00
Install cask. Run `make dist` to ensure correct cask functionality.
2019-10-21 21:21:02 +02:00
Run `make test` to ensure a correct baseline. You need Jupyter, R and Julia
executables to be available through your `$PATH` for this (and also,
`matplotlib` and kernels for R and Julia installed and visible for the
aforementioned Jupyter).
2019-10-21 21:21:02 +02:00
Remove the MELPA-installed EIN by deleting the package directory (on my system,
it's `~/.emacs.d/elpa/ein-20190122.1341`) or running `M-x package-delete`.
2012-12-06 00:23:21 +01:00
In your `init.el` or `.emacs`, add the following:
2012-12-06 00:23:21 +01:00
```
(add-to-list 'load-path "~/emacs-ipython-notebook/lisp")
(load "ein-autoloads")
```
2012-12-06 00:23:21 +01:00
Now whatever changes you make to the repo will be reflected in new emacs instances.
2012-12-06 00:23:21 +01:00
Dev tools
2019-04-02 09:33:18 -04:00
---------
`M-x ein:dev-start-debug` activates full logging and backtrace on error.
2012-12-06 00:23:21 +01:00
Quick sanity checking
---------------------
2019-10-21 21:21:02 +02:00
`make quick` runs a syntax check and the unit tests. It is far quicker than the
laborious `make test`.
2012-12-06 00:23:21 +01:00
Unit tests
----------
Located in `~/emacs-ipython-notebook/test`.
Integration tests
-----------------
If you add a feature, we encourage writing an integration test.
2019-10-21 21:21:02 +02:00
`cask exec ecukes` is the bulk of `make test`. Ecukes is our friend and
guardian. We follow its opinionated file structure in
`~/emacs-ipython-notebook/features`.
To run say just the login tests, `cask exec ecukes --tags "@login"`.