Comments (7)
Hello please add the code of the failing test to your comment. Thanks.
from ert-runner.el.
Here the code of the unit test 1 :
(ert-deftest test-dionysos-process-can-start-process ()
:tags '(process current)
(with-test-sandbox
(with-music-file
"resources/Roulement_tambour-01.mp3"
(dionysos--create-process
dionysos--process-name "mpg123" (list file) (lambda () (message "ok")))
(should (equal 'run (dionysos--status-process dionysos--process-name)))
(dionysos--kill-process dionysos--process-name)
(should (equal nil (process-list))))))
And the process code 2:
(defun dionysos--create-process (process-name command arguments &optional hook)
"Create a new asynchronous process.
`PROCESS-NAME' is used to identify this process
`COMMAND' correspond to the program running
`ARGUMENTS' are arguments passed to the program.
`HOOK' is called when process is finished."
(message "[dionysos-process] Create %s %s %s %s"
process-name command arguments hook)
(let ((status (dionysos--status-process process-name)))
(message "[dionysos-process] Status : %s" status)
(unless (equal 'run status)
(lexical-let ((hook hook))
(let ((process (apply 'start-process process-name nil command arguments)))
(set-process-sentinel
process
(lambda (process event)
(dionysos--process-sentinel process event hook))))))))
from ert-runner.el.
Do you actually require cl or cl-lib in your code?
from ert-runner.el.
Besides I'd recommend you to use lexical binding over lexical-let. At least use cl-lib and cl-lexical-let.
from ert-runner.el.
in dionysos.el file, there is :
(require 'cl-lib)
and in dionysos-process.el file also.
from ert-runner.el.
@nlamirault lexical-let
is in cl
, not cl-lib
. Actually, I'm not sure whether cl-lexical-let
actually exists; I don't think it was ported to cl-lib
given that Emacs now has proper lexical binding.
In any case it looks like you're missing a require, which means that Emacs doesn't know that lexical-let
is a macro and thus tries to evaluate (hook hook)
as a function call.
Try whether (require 'cl)
fixes the issue.
from ert-runner.el.
Thanks ! it works now.
from ert-runner.el.
Related Issues (20)
- Use shut up HOT 1
- Add an "-L" option to load-path HOT 1
- Ert reporter broken on Emacs 24.4
- -L option appends instead of prepends path HOT 1
- Tests failing HOT 5
- loading fails if ERT_RUNNER_ARGS are not set HOT 4
- Running with --win or --no-win produces no output HOT 12
- Question: how to automatically add package directory on load-path HOT 4
- ert-runner on Windows HOT 2
- Only print test output when it fails HOT 2
- dot reporter output is not "online" HOT 8
- I think it would be better if test-helper.el did not provide a feature HOT 18
- Allow test files in other locations HOT 1
- ert--print-backtrace now has two arguments HOT 1
- "Nonexistent files" test fails because of quoting style HOT 1
- Signature of `ert--print-backtrace` has changed. HOT 2
- `ert--print-backtrace` has been removed in latest Emacs HOT 4
- Batch script fails on Windows
- Custom reporter can't be used without hacks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ert-runner.el.