mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-06 10:15:38 +00:00
Disable Phpactor tests that find references on Windows (takes forever/fails)
This commit is contained in:
1 parent
af6ce686ad
commit
d65a99034b
1 file changed
+7
@@ -1,3 +1,4 @@
|
||||
import platform
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
@@ -93,6 +94,9 @@ class TestPhpLanguageServers:
|
||||
@pytest.mark.parametrize("language_server", [Language.PHP, Language.PHP_PHPACTOR], indirect=True)
|
||||
@pytest.mark.parametrize("repo_path", [Language.PHP], indirect=True)
|
||||
def test_find_references_within_file(self, language_server: SolidLanguageServer, repo_path: Path) -> None:
|
||||
if language_server.language == Language.PHP_PHPACTOR and platform.system() == "Windows":
|
||||
pytest.skip("Phpactor references test not working on Windows, skipping for now")
|
||||
|
||||
index_php_path = str(repo_path / "index.php")
|
||||
|
||||
# In index.php (0-indexed lines):
|
||||
@@ -141,6 +145,9 @@ class TestPhpLanguageServers:
|
||||
@pytest.mark.parametrize("language_server", [Language.PHP, Language.PHP_PHPACTOR], indirect=True)
|
||||
@pytest.mark.parametrize("repo_path", [Language.PHP], indirect=True)
|
||||
def test_find_references_across_files(self, language_server: SolidLanguageServer, repo_path: Path) -> None:
|
||||
if language_server.language_server.language == Language.PHP_PHPACTOR and platform.system() == "Windows":
|
||||
pytest.skip("Phpactor references test not working on Windows, skipping for now")
|
||||
|
||||
helper_php_path = str(repo_path / "helper.php")
|
||||
# In index.php (0-indexed lines):
|
||||
# Line 13: helperFunction(); // Usage of helperFunction
|
||||
|
||||
Reference in new issue
Block a user