aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEric Berquist <eric.berquist@gmail.com>2023-03-16 11:52:07 -0400
committerGitHub <noreply@github.com>2023-03-16 17:52:07 +0200
commit30a340f22de227b973e2245002291595857d83ae (patch)
tree9b3a706ea25b2b2bddd38d8cc323ac6febcc089e /test
parent1a0fd56aeb22c40559683524907dee9460709855 (diff)
Detect Julia projects (#1833)
Diffstat (limited to 'test')
-rw-r--r--test/projectile-test.el19
1 files changed, 18 insertions, 1 deletions
diff --git a/test/projectile-test.el b/test/projectile-test.el
index c9d3a12..24ad73f 100644
--- a/test/projectile-test.el
+++ b/test/projectile-test.el
@@ -1338,7 +1338,24 @@ Just delegates OPERATION and ARGS for all operations except for`shell-command`'.
"project/project.el")
(let ((projectile-indexing-method 'native))
(spy-on 'projectile-project-root :and-return-value (file-truename (expand-file-name "project/")))
- (expect (projectile-detect-project-type) :to-equal 'emacs-eldev))))))
+ (expect (projectile-detect-project-type) :to-equal 'emacs-eldev)))))
+ (it "detects project-type for projects with src dir and no other marker"
+ (projectile-test-with-sandbox
+ (projectile-test-with-files
+ ("project/"
+ "project/src/")
+ (let ((projectile-indexing-method 'native))
+ (spy-on 'projectile-project-root :and-return-value (file-truename (expand-file-name "project/")))
+ (expect (projectile-detect-project-type) :to-equal 'dotnet-sln)))))
+ (it "detects project-type for Julia PkgTemplates.jl projects"
+ (projectile-test-with-sandbox
+ (projectile-test-with-files
+ ("project/"
+ "project/src/"
+ "project/Project.toml")
+ (let ((projectile-indexing-method 'native))
+ (spy-on 'projectile-project-root :and-return-value (file-truename (expand-file-name "project/")))
+ (expect (projectile-detect-project-type) :to-equal 'julia))))))
(describe "projectile-dirname-matching-count"
(it "counts matching dirnames ascending file paths"