Commit d8acd81
Jest testing (#309)
* Add jest package
* Port analyze tests
* Add testUnsafe helper and config.test.js
* Add mini.pkg.1 to test-js/
* Add exec.test.js
* Add emacsVersion helper
Fix return type of emacsVersion()
* NPM script to reset test environments
* Add TestContext class and simplify exec.test.js
* Add options.test.js
* Add buttercup.test.js
* Add outdated.test.js
* Add emacs.test.js
* Add search.test.js
* Add link.test.js
* Log cmd output when DEBUG is set
* Fix config.test.js
* Add test-ecukes.test.js
* Add test-ert.test.js
* Add test-ert-runner.test.js
* Add exit-status tests
* Add local.test.js
* Add docker.test.js
* Add install.test.js
* Add global.test.js
* Tidy up log formatting
* config.test.js should create ~/.emacs.d/init.el
* global.test.js should create ~/Eask
* Update analyze.test.js with TestContext
* Add default timeout and message when cmd is killed
* Remove local timeouts in test files
* Add some doco to helpers.js
* fix: add some comments
* Sketch of doco page
* Example of exit code matching
* Add some file helpers
* Add comprehensive tests to link.test.js
* Move upgrade-eask test to own file
* Check result of commands in install.test.js
* Disable js-elpa in install.test.js to speed up test
* Add output transformation helper
* Add examples of snapshots to analyze.test.js
* Update doco with snapshot example
* Simplify options.test.js using test table
* Update bug descriptions in link.test.js
* Sanitize windows style paths
* fix: try using double quotes to fix windows issue in exec.test.js
* Teardown global env when ALLOW_UNSAFE is true
* Check for global Easkfile in info -g test
* Add removeFiles helper method
* Tidy up generated files in local.test.js
* Move ./test-js to ./test/jest
* Update local patch test-js => test/jest
* Increase docker.test.js timeout
* Tweak timeouts of local.test.js
* docs: comment on boolean env vars
* rename npm script test-docker to test-ci
* use jest tests in workflows
* Only run eask loc on emacs >= 28.1
* Increase timeout in config.test.js
* docs: add method doco to helpers.js
* In config.test.js throw if init.el exists
* Add workflow for upgrade-eask test
* Remove makefile targets and old script files
* docs: Add sections on snapshots and timeouts
* docs: move Testing page onto "Developing Eask" page
* Rename buttercup.test.js and outdated.test.js consistently
* delete unused test project
* style: Format it
* docs: Add zh-TW translation
* docs: Translate comment as well
---------
Co-authored-by: JenChieh <jcs090218@gmail.com>1 parent c287d5c commit d8acd81
File tree
134 files changed
+6524
-1856
lines changed- .github/workflows
- docs/content/Contributing/Developing-Eask
- test
- commands
- analyze
- dsl
- error
- metadata
- bump
- compile
- concat
- config
- docker
- docs
- emacs
- eval
- exec
- format
- global
- info
- init
- install
- link
- lint
- local
- outdated_upgrade
- recipe
- run
- search
- source
- test
- buttercup
- ecukes
- ert-runner
- ert
- jest
- __snapshots__
- buttercup
- test-fail
- test-ok
- config
- docker
- files
- dsl
- ecukes
- features
- step-definitions
- support
- empty
- ert-runner
- test
- ert
- test-nil-message
- test
- exec
- bin
- test
- global
- install
- files
- link
- link-fail
- files
- link-to
- local
- files
- metadata
- options
- outdated-upgrade
- search
- options
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
134 files changed
+6524
-1856
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
0 commit comments