emacs-ipython-notebook/CONTRIBUTING.md

43 lines
1.4 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.
Run `make test` to ensure a correct baseline.
Until we institute a virtualenv for the required testing software (jupyter, R, matplotlib, etc.), out-of-the-box `make test` remains problematic.
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
---------------------
`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.
`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"`.