Commit Graph

26 Commits

Author SHA1 Message Date
Henrik Lissner
e0f6fde7c1
Update doom//run-tests for new doom! 2018-01-29 18:41:55 -05:00
Henrik Lissner
4d51a1ab09
Fix :skip property in def-test! 2018-01-04 16:14:50 -05:00
Henrik Lissner
b7d21fb256
Add let-advice!! test macro 2018-01-04 16:14:50 -05:00
Henrik Lissner
c9a878a62f
Conform unit test macros to naming scheme 2018-01-01 16:59:30 -05:00
Henrik Lissner
8ad2666f8f
Refactor and fix unit tests, plus isolate them better 2017-12-31 14:58:45 -05:00
Henrik Lissner
02c1a78330
Add :skip support for def-test! 2017-12-29 04:17:19 -05:00
Henrik Lissner
fe3db542ed
Fix ERT not running properly on make test 2017-12-10 15:37:32 -05:00
Henrik Lissner
013f8e08d5
Fix make test-* tasks for running specific tests 2017-12-09 14:37:43 -05:00
Henrik Lissner
5ea37bc1ef
Clean up legacy comments 2017-11-08 22:52:55 +01:00
Henrik Lissner
211977e28a
doom--module-pairs => doom-module-pairs 2017-11-08 22:51:55 +01:00
Henrik Lissner
c45e2c4918
General & minor refactor+cleanup 2017-11-05 19:54:44 +01:00
Henrik Lissner
95a5b46dc5
New // naming convention + refactor doom management functions 2017-11-05 19:54:43 +01:00
Henrik Lissner
8800108eed
Add test helper macros to test.el lib 2017-10-05 01:27:46 +02:00
Henrik Lissner
5e393b3233
Ensure module state is initialized on make test 2017-08-09 15:30:42 +02:00
Henrik Lissner
6e8726a624
Simplify core loading process (part 2) 2017-08-08 16:31:48 +02:00
Henrik Lissner
65748c5809
Simplify core loading process 2017-08-08 14:25:36 +02:00
Henrik Lissner
a63640b120
Force interactive when running tests 2017-07-29 00:30:42 +02:00
Henrik Lissner
f93fb61f33
Refactor core.el
+ Load Doom core in doom! macro
+ Move automatic minor modes to core-editor
+ Move doom*set-indirect-buffer-filename to core-editor
2017-07-13 00:05:30 +02:00
Henrik Lissner
e87d278811
Remove (interactive) from non-interactive funcs 2017-07-12 14:59:00 +02:00
Henrik Lissner
f246d89fb6
Fix make test:X/Y where Y is omitted
This way, make feature will run all unit tests in feature/* modules.
2017-06-28 15:28:51 +02:00
Henrik Lissner
869bc03ca6
Load bare minimum for tests 2017-06-28 15:28:13 +02:00
Henrik Lissner
cbfb3eeda4
Fix, rename & move doom/run-tests => doom-run-tests 2017-06-24 17:15:22 +02:00
Henrik Lissner
9c93c453e8
Reorganize unit-tests and test workflow
+ Moved unit tests out of tests/ and into their respective modules.
+ Rewrite makefile and added these tasks:
  + <MODULE>/<SUBMODULE> -- byte-compile a specific module
  + test:<MODULE>/<SUBMODULE> -- runs tests for a specific module
  + testi -- run tests in an interactive session of Emacs (WIP)
  + run -- opens an Emacs session with this config; useful when it is in
    a non-standard location.
2017-06-14 21:15:19 +02:00
Henrik Lissner
c7254e7bdc
Major optimization refactor, across the board
+ enable lexical-scope everywhere (lexical-binding = t): ~5-10% faster
  startup; ~5-20% general boost
+ reduce consing, function calls & garbage collection by preferring
  cl-loop & dolist over lambda closures (for mapc[ar], add-hook, and
  various cl-lib filter/map/reduce functions) -- where possible
+ prefer functions with dedicated opcodes, like assq (see byte-defop's
  in bytecomp.el for more)
+ prefer pcase & cond (faster) over cl-case
+ general refactor for code readability
+ ensure naming & style conventions are adhered to
+ appease byte-compiler by marking unused variables with underscore
+ defer minor mode activation to after-init, emacs-startup or
  window-setup hooks; a customization opportunity for users + ensures
  custom functionality won't interfere with startup.
2017-06-09 00:47:45 +02:00
Henrik Lissner
c370e1cddd Add :disabled property to def-test-group! 2017-04-12 10:52:42 -04:00
Henrik Lissner
acb7536e64 Add core-lib & core-lib-{buffers,package} unit tests + tasks 2017-04-04 22:18:52 -04:00