Skip to content

Commit 38906bb

Browse files
authored
Merge pull request #121 from lucasmafra/allow-test-extra-args
Allow extra args to test command
2 parents 64fb5d9 + 0b80f44 commit 38906bb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lsp-dart-test-support.el

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,15 @@ IGNORE-CASE is a optional arg to ignore the case sensitive on regex search."
6363
(lsp-dart-flutter-command)
6464
(lsp-dart-pub-command)))
6565

66+
(defcustom lsp-dart-test-extra-args '()
67+
"Extra arguments to be passed to test command (e.g: --no-sound-null-safety)."
68+
:type '(repeat string)
69+
:group 'lsp-dart)
70+
6671
(defun lsp-dart-test--build-command-extra-args ()
6772
"Build the dart or flutter extra args."
6873
(if (lsp-dart-flutter-project-p)
69-
'("test" "--machine")
74+
(append '("test" "--machine") lsp-dart-test-extra-args)
7075
'("run" "test" "-r" "json")))
7176

7277
(defun lsp-dart-test--build-test-name (names)

0 commit comments

Comments
 (0)