2019-03-09 10:12:52 -05:00
Getting started
---------------
Thank you for contributing! EIN development will work best in a UNIX environment.
2012-09-28 15:13:43 +02:00
2019-03-09 10:12:52 -05:00
Fork the repo on github. Clone the fork to your home directory.
2012-09-28 01:59:26 +02:00
2019-03-09 10:12:52 -05:00
Install cask. Run `make dist` to ensure correct cask functionality.
2012-09-28 15:13:43 +02:00
2019-05-07 10:17:10 -04:00
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.
2012-09-28 15:13:43 +02:00
2019-03-09 10:12:52 -05: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
2019-03-09 10:12:52 -05:00
In your `init.el` or `.emacs` , add the following:
2012-12-06 00:23:21 +01:00
2019-03-09 10:12:52 -05:00
```
(add-to-list 'load-path "~/emacs-ipython-notebook/lisp")
2019-03-09 15:41:13 -05:00
(load "ein-autoloads")
2019-03-09 10:12:52 -05:00
```
2012-12-06 00:23:21 +01:00
2019-03-09 10:12:52 -05:00
Now whatever changes you make to the repo will be reflected in new emacs instances.
2012-12-06 00:23:21 +01:00
2019-03-09 10:12:52 -05: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
2019-03-09 10:12:52 -05: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
2019-03-09 10:12:52 -05:00
Unit tests
----------
Located in `~/emacs-ipython-notebook/test` .
2012-09-28 15:13:43 +02:00
2019-03-09 10:12:52 -05:00
Integration tests
-----------------
If you add a feature, we encourage writing an integration test.
2012-09-28 15:13:43 +02:00
2019-03-09 10:12:52 -05: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` .
2012-09-28 15:13:43 +02:00
2019-03-09 10:12:52 -05:00
To run say just the login tests, `cask exec ecukes --tags "@login"` .