emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/dart-mode 6bc08f7 136/192: Adds failing test against dart


From: ELPA Syncer
Subject: [nongnu] elpa/dart-mode 6bc08f7 136/192: Adds failing test against dart dev
Date: Sun, 29 Aug 2021 11:02:05 -0400 (EDT)

branch: elpa/dart-mode
commit 6bc08f7232c218e16d7de549de68ca161634de44
Author: Brady Trainor <mail@bradyt.com>
Commit: Brady Trainor <mail@bradyt.com>

    Adds failing test against dart dev
    
    This test succeeds on stable branch of dart, and fails on development
    branch of dart.
    
    This test is fragile, relying on events that are not completely
    understood by its author. Especially, the process seems to return at
    least twice, and we have to limit the time for the third return.
    
    Another instance of difficulty in testing of asynchronous processes
    can be seen at
    https://lists.gnu.org/archive/html/emacs-devel/2013-02/msg00506.html.
---
 .travis.yml            | 6 +++++-
 test/dart-mode-test.el | 9 +++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index f3a4b2e..e80c9af 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,10 @@
 sudo: required
 
-language: generic
+language: dart
+
+dart:
+  - stable
+  - dev
 
 env:
   # - EVM_EMACS=emacs-24.1-travis
diff --git a/test/dart-mode-test.el b/test/dart-mode-test.el
index 3cdb646..1ee30d9 100644
--- a/test/dart-mode-test.el
+++ b/test/dart-mode-test.el
@@ -2,4 +2,13 @@
 
 (require 'dart-mode)
 
+(ert-deftest dart-test ()
+  (let ((file (make-temp-file "analysis")))
+    (dart-add-analysis-root-for-file file)
+    (let ((proc (dart--analysis-server-process
+                dart--analysis-server)))
+      (accept-process-output proc)
+      (accept-process-output proc)
+      (accept-process-output proc 8))))
+
 ;;; dart-mode-test.el ends here



reply via email to

[Prev in Thread] Current Thread [Next in Thread]