Skip to content

Commit

Permalink
Disable LS performance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nipunayf committed Nov 19, 2023
1 parent 62408d8 commit 7d548e5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion language-server/modules/langserver-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ test {
systemProperty "ballerina.home", "$buildDir/"
systemProperty "experimental", "true"
systemProperty "ballerina.version", project.version
systemProperty "responseTimeThreshold", 60000
systemProperty "responseTimeThreshold", 2000
useTestNG() {
suites 'src/test/resources/testng.xml'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public String getResourceDir() {
}

@Override
@Test(dataProvider = "codeaction-data-provider")
@Test(dataProvider = "codeaction-data-provider", enabled = false)
public void test(String config) throws IOException, WorkspaceDocumentException {
super.test(config);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
*/
public class CompletionPerformanceTest extends CompletionTest {

@Test(dataProvider = "completion-data-provider")
@Test(dataProvider = "completion-data-provider", enabled = false)
@Override
public void test(String config, String configPath) throws WorkspaceDocumentException, IOException {
super.test(config, configPath);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class HoverPerformanceTest extends HoverProviderTest {

private final List<Long> executionTimes = new ArrayList<>();

@Test(description = "Test Hover provider", dataProvider = "hover-data-provider")
@Test(description = "Test Hover provider", dataProvider = "hover-data-provider", enabled = false)
public void testHover(String config) throws IOException {
// We run the same test multiple times and take the average of them as the execution time. This is to
// reduce the effect of first compilation and outliers
Expand Down

0 comments on commit 7d548e5

Please sign in to comment.