Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
6b90753
Add jest package
joshbax189 Mar 19, 2025
274ee3c
Port analyze tests
joshbax189 Mar 19, 2025
1f9902f
Add testUnsafe helper and config.test.js
joshbax189 Mar 19, 2025
d63f6b4
Add mini.pkg.1 to test-js/
joshbax189 Mar 19, 2025
405a983
Add exec.test.js
joshbax189 Mar 19, 2025
1a1c302
Add emacsVersion helper
joshbax189 Mar 20, 2025
7310c97
NPM script to reset test environments
joshbax189 Mar 20, 2025
ed38d21
Add TestContext class and simplify exec.test.js
joshbax189 Mar 20, 2025
a672755
Add options.test.js
joshbax189 Mar 19, 2025
613a145
Add buttercup.test.js
joshbax189 Mar 20, 2025
a6e54b3
Add outdated.test.js
joshbax189 Mar 20, 2025
7cf92e1
Add emacs.test.js
joshbax189 Mar 20, 2025
9822b1e
Add search.test.js
joshbax189 Mar 19, 2025
a97b28b
Add link.test.js
joshbax189 Mar 19, 2025
81ac7c8
Log cmd output when DEBUG is set
joshbax189 Mar 20, 2025
54e3a9c
Fix config.test.js
joshbax189 Mar 20, 2025
5f89df7
Add test-ecukes.test.js
joshbax189 Mar 21, 2025
1e80a68
Add test-ert.test.js
joshbax189 Mar 21, 2025
453692e
Add test-ert-runner.test.js
joshbax189 Mar 21, 2025
cfda301
Add exit-status tests
joshbax189 Mar 23, 2025
86c8245
Add local.test.js
joshbax189 Mar 24, 2025
dcaa903
Add docker.test.js
joshbax189 Mar 24, 2025
f453276
Add install.test.js
joshbax189 Mar 24, 2025
ee96a39
Add global.test.js
joshbax189 Mar 24, 2025
ca22326
Tidy up log formatting
joshbax189 Mar 24, 2025
ec5b154
config.test.js should create ~/.emacs.d/init.el
joshbax189 Mar 24, 2025
d9bcc44
global.test.js should create ~/Eask
joshbax189 Mar 24, 2025
2646e77
Update analyze.test.js with TestContext
joshbax189 Mar 25, 2025
c8621ac
Add default timeout and message when cmd is killed
joshbax189 Mar 25, 2025
8b1cf4b
Remove local timeouts in test files
joshbax189 Mar 25, 2025
19fec0b
Add some doco to helpers.js
joshbax189 Mar 25, 2025
c751ce3
fix: add some comments
joshbax189 Mar 25, 2025
d87f629
Sketch of doco page
joshbax189 Mar 25, 2025
e9911f1
Example of exit code matching
joshbax189 Mar 25, 2025
62ab996
Add some file helpers
joshbax189 Mar 25, 2025
e4dbe00
Add comprehensive tests to link.test.js
joshbax189 Mar 25, 2025
90f573e
Move upgrade-eask test to own file
joshbax189 Mar 25, 2025
8f8b559
Check result of commands in install.test.js
joshbax189 Mar 25, 2025
b8a8f62
Disable js-elpa in install.test.js to speed up test
joshbax189 Mar 25, 2025
6535d09
Add output transformation helper
joshbax189 Mar 25, 2025
b8c4979
Add examples of snapshots to analyze.test.js
joshbax189 Mar 25, 2025
b2f72c0
Update doco with snapshot example
joshbax189 Mar 25, 2025
b00e55a
Simplify options.test.js using test table
joshbax189 Mar 26, 2025
269a03c
Update bug descriptions in link.test.js
joshbax189 Mar 26, 2025
53b30e9
Sanitize windows style paths
joshbax189 Mar 26, 2025
e7bb0cd
fix: try using double quotes to fix windows issue in exec.test.js
joshbax189 Mar 26, 2025
39244bc
Teardown global env when ALLOW_UNSAFE is true
joshbax189 Mar 26, 2025
94c1bdf
Check for global Easkfile in info -g test
joshbax189 Mar 26, 2025
b9f0ad5
Add removeFiles helper method
joshbax189 Mar 26, 2025
c76c44c
Tidy up generated files in local.test.js
joshbax189 Mar 26, 2025
687c2bb
Move ./test-js to ./test/jest
joshbax189 Mar 26, 2025
0eab96e
Update local patch test-js => test/jest
joshbax189 Mar 26, 2025
670c571
Increase docker.test.js timeout
joshbax189 Mar 27, 2025
f804013
Tweak timeouts of local.test.js
joshbax189 Mar 27, 2025
01e9c2c
docs: comment on boolean env vars
joshbax189 Mar 27, 2025
8ff24e0
rename npm script test-docker to test-ci
joshbax189 Mar 28, 2025
395039c
use jest tests in workflows
joshbax189 Mar 28, 2025
046dfeb
Only run eask loc on emacs >= 28.1
joshbax189 Mar 28, 2025
bc9c240
Increase timeout in config.test.js
joshbax189 Mar 28, 2025
f082f12
docs: add method doco to helpers.js
joshbax189 Mar 28, 2025
1a093bc
In config.test.js throw if init.el exists
joshbax189 Mar 28, 2025
714dce4
Add workflow for upgrade-eask test
joshbax189 Mar 28, 2025
e31f0f5
Remove makefile targets and old script files
joshbax189 Mar 28, 2025
3744c67
docs: Add sections on snapshots and timeouts
joshbax189 Mar 28, 2025
8799ad0
docs: move Testing page onto "Developing Eask" page
joshbax189 Mar 28, 2025
a5e7c0d
Rename buttercup.test.js and outdated.test.js consistently
joshbax189 Mar 28, 2025
f5a94e5
delete unused test project
joshbax189 Mar 28, 2025
73debff
style: Format it
jcs090218 Mar 28, 2025
97b8074
docs: Add zh-TW translation
jcs090218 Mar 28, 2025
e76a1b8
docs: Translate comment as well
jcs090218 Mar 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ jobs:

- name: Testing...
run: |
make command-analyze
npm run test-unsafe test/jest/analyze.test.js
4 changes: 2 additions & 2 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- master
paths:
- 'eask'
- 'eask'
- '**.yml'
- lisp/**
- cmds/**
Expand Down Expand Up @@ -73,4 +73,4 @@ jobs:

- name: Testing...
run: |
make command-config
npm run test-unsafe test/jest/config.test.js
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os:
os:
- ubuntu-latest
# XXX: `macos-latest` on arm64 is not possible as well!?
# See https://stackoverflow.com/questions/77675906/github-actions-build-docker-image-on-arm64-macos-latest-xlarge
Expand Down Expand Up @@ -67,4 +67,4 @@ jobs:

- name: Testing...
run: |
make command-docker
npm run test-unsafe test/jest/docker.test.js
2 changes: 1 addition & 1 deletion .github/workflows/emacs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ jobs:

- name: Testing...
run: |
make command-emacs
npm run test-unsafe test/jest/emacs.test.js
2 changes: 1 addition & 1 deletion .github/workflows/exec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ jobs:

- name: Testing...
run: |
make command-exec
npm run test-unsafe test/jest/exec.test.js
2 changes: 1 addition & 1 deletion .github/workflows/exit_status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ jobs:

- name: Testing...
run: |
make command-exit-status
npm run test-unsafe test/jest/exit-status.test.js
2 changes: 1 addition & 1 deletion .github/workflows/global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ jobs:

- name: Testing...
run: |
make command-global
npm run test-unsafe test/jest/global.test.js
2 changes: 1 addition & 1 deletion .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ jobs:

- name: Testing...
run: |
make command-install
npm run test-unsafe test/jest/install.test.js
2 changes: 1 addition & 1 deletion .github/workflows/link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ jobs:

- name: Testing...
run: |
make command-link
npm run test-unsafe test/jest/link.test.js
2 changes: 1 addition & 1 deletion .github/workflows/local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ jobs:

- name: Testing...
run: |
make command-local
npm run test-unsafe test/jest/local.test.js
2 changes: 1 addition & 1 deletion .github/workflows/options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:

- name: Testing...
run: |
make test-options
npm run test-unsafe test/jest/options.test.js
2 changes: 1 addition & 1 deletion .github/workflows/outdated_upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:

- name: Testing...
run: |
make command-outdated-upgrade
npm run test-unsafe test/jest/outdated-upgrade.test.js
2 changes: 1 addition & 1 deletion .github/workflows/search.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:

- name: Testing...
run: |
make command-search
npm run test-unsafe test/jest/search.test.js
2 changes: 1 addition & 1 deletion .github/workflows/test_buttercup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:

- name: Testing...
run: |
make test-buttercup
npm run test-unsafe test/jest/test-buttercup.test.js
2 changes: 1 addition & 1 deletion .github/workflows/test_ecukes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:

- name: Testing...
run: |
make test-ecukes
npm run test-unsafe test/jest/test-ecukes.test.js
2 changes: 1 addition & 1 deletion .github/workflows/test_ert-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:

- name: Testing...
run: |
make test-ert-runner
npm run test-unsafe test/jest/test-ert-runner.test.js
2 changes: 1 addition & 1 deletion .github/workflows/test_ert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:

- name: Testing...
run: |
make test-ert
npm run test-unsafe test/jest/test-ert.test.js
55 changes: 55 additions & 0 deletions .github/workflows/upgrade-eask.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Upgrade Eask

on:
push:
branches:
- master
paths:
- 'eask'
- '**.yml'
- lisp/**
- cmds/**
- src/**
- test/**
pull_request:
branches:
- master
paths-ignore:
- '**/docs.yml'
- '**.md'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
emacs-version:
- 30.1

steps:
- uses: jcs090218/setup-emacs@master
with:
version: ${{ matrix.emacs-version }}

- uses: actions/checkout@v4

- name: Prepare Eask (Unix)
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: |
chmod -R 777 ./
.github/scripts/setup-eask

- name: Prepare Eask (Windows)
if: matrix.os == 'windows-latest'
run: .github/scripts/setup-eask.ps1

- name: Testing...
run: |
npm run test-unsafe test/jest/upgrade-eask.test.js
89 changes: 0 additions & 89 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,97 +14,8 @@ test-compat:
@echo "Test compatibility..."
$(EASK) load ./test/development/compat.el --allow-error

test-options:
./test/options/run.sh

color:
./test/color/run.sh

error:
./test/error/run.sh

command-global:
./test/commands/global/run.sh

command-config:
./test/commands/config/run.sh

command-local:
./test/commands/local/run.sh

# new tests which check missing args not covered by existing tests
command-exit-status: command-bump command-concat command-docs command-eval command-format command-info command-init command-lint command-recipe command-run command-source

command-analyze:
./test/commands/analyze/dsl/run.sh
./test/commands/analyze/metadata/run.sh
./test/commands/analyze/error/run.sh

command-bump:
./test/commands/bump/run.sh

command-compile:
./test/commands/compile/run.sh

command-concat:
./test/commands/concat/run.sh

command-docker:
./test/commands/docker/run.sh

command-docs:
./test/commands/docs/run.sh

command-eval:
./test/commands/eval/run.sh

command-exec:
./test/commands/exec/run.sh

command-emacs:
./test/commands/emacs/run.sh

command-format:
./test/commands/format/run.sh

command-info:
./test/commands/info/run.sh

command-init:
./test/commands/init/run.sh

command-install:
./test/commands/install/run.sh

command-link:
./test/commands/link/run.sh

command-lint:
./test/commands/lint/run.sh

command-outdated-upgrade:
./test/commands/outdated_upgrade/run.sh

command-recipe:
./test/commands/recipe/run.sh

command-run:
./test/commands/run/run.sh

command-search:
./test/commands/search/run.sh

command-source:
./test/commands/source/run.sh

test-ert:
./test/commands/test/ert/run.sh

test-ert-runner:
./test/commands/test/ert-runner/run.sh

test-buttercup:
./test/commands/test/buttercup/run.sh

test-ecukes:
./test/commands/test/ecukes/run.sh
Loading