@@ -10,6 +10,7 @@ use paths::Utf8PathBuf;
1010
1111use rust_analyzer:: lsp:: ext:: { InternalTestingFetchConfig , InternalTestingFetchConfigParams } ;
1212use serde_json:: json;
13+ use test_utils:: skip_slow_tests;
1314
1415enum QueryType {
1516 Local ,
@@ -182,6 +183,10 @@ impl RatomlTest {
182183/// the client config.
183184#[ test]
184185fn ratoml_client_config_basic ( ) {
186+ if skip_slow_tests ( ) {
187+ return ;
188+ }
189+
185190 let server = RatomlTest :: new (
186191 vec ! [
187192 r#"
@@ -283,6 +288,10 @@ enum Value {
283288#[ test]
284289#[ ignore = "the user config is currently not being watched on startup, fix this" ]
285290fn ratoml_user_config_detected ( ) {
291+ if skip_slow_tests ( ) {
292+ return ;
293+ }
294+
286295 let server = RatomlTest :: new (
287296 vec ! [
288297 r#"
@@ -312,6 +321,10 @@ enum Value {
312321#[ test]
313322#[ ignore = "the user config is currently not being watched on startup, fix this" ]
314323fn ratoml_create_user_config ( ) {
324+ if skip_slow_tests ( ) {
325+ return ;
326+ }
327+
315328 let mut server = RatomlTest :: new (
316329 vec ! [
317330 r#"
@@ -343,6 +356,10 @@ enum Value {
343356#[ test]
344357#[ ignore = "the user config is currently not being watched on startup, fix this" ]
345358fn ratoml_modify_user_config ( ) {
359+ if skip_slow_tests ( ) {
360+ return ;
361+ }
362+
346363 let mut server = RatomlTest :: new (
347364 vec ! [
348365 r#"
@@ -373,6 +390,10 @@ assist.emitMustUse = true"#,
373390#[ test]
374391#[ ignore = "the user config is currently not being watched on startup, fix this" ]
375392fn ratoml_delete_user_config ( ) {
393+ if skip_slow_tests ( ) {
394+ return ;
395+ }
396+
376397 let mut server = RatomlTest :: new (
377398 vec ! [
378399 r#"
@@ -402,6 +423,10 @@ assist.emitMustUse = true"#,
402423
403424#[ test]
404425fn ratoml_inherit_config_from_ws_root ( ) {
426+ if skip_slow_tests ( ) {
427+ return ;
428+ }
429+
405430 let server = RatomlTest :: new (
406431 vec ! [
407432 r#"
@@ -445,6 +470,10 @@ pub fn add(left: usize, right: usize) -> usize {
445470
446471#[ test]
447472fn ratoml_modify_ratoml_at_ws_root ( ) {
473+ if skip_slow_tests ( ) {
474+ return ;
475+ }
476+
448477 let mut server = RatomlTest :: new (
449478 vec ! [
450479 r#"
@@ -490,6 +519,10 @@ pub fn add(left: usize, right: usize) -> usize {
490519
491520#[ test]
492521fn ratoml_delete_ratoml_at_ws_root ( ) {
522+ if skip_slow_tests ( ) {
523+ return ;
524+ }
525+
493526 let mut server = RatomlTest :: new (
494527 vec ! [
495528 r#"
@@ -535,6 +568,10 @@ pub fn add(left: usize, right: usize) -> usize {
535568
536569#[ test]
537570fn ratoml_add_immediate_child_to_ws_root ( ) {
571+ if skip_slow_tests ( ) {
572+ return ;
573+ }
574+
538575 let mut server = RatomlTest :: new (
539576 vec ! [
540577 r#"
@@ -581,6 +618,10 @@ pub fn add(left: usize, right: usize) -> usize {
581618#[ test]
582619#[ ignore = "Root ratomls are not being looked for on startup. Fix this." ]
583620fn ratoml_rm_ws_root_ratoml_child_has_client_as_parent_now ( ) {
621+ if skip_slow_tests ( ) {
622+ return ;
623+ }
624+
584625 let mut server = RatomlTest :: new (
585626 vec ! [
586627 r#"
@@ -626,6 +667,10 @@ pub fn add(left: usize, right: usize) -> usize {
626667
627668#[ test]
628669fn ratoml_crates_both_roots ( ) {
670+ if skip_slow_tests ( ) {
671+ return ;
672+ }
673+
629674 let server = RatomlTest :: new (
630675 vec ! [
631676 r#"
@@ -670,6 +715,10 @@ enum Value {
670715
671716#[ test]
672717fn ratoml_multiple_ratoml_in_single_source_root ( ) {
718+ if skip_slow_tests ( ) {
719+ return ;
720+ }
721+
673722 let server = RatomlTest :: new (
674723 vec ! [
675724 r#"
@@ -778,6 +827,10 @@ fn ratoml_multiple_ratoml_in_single_source_root() {
778827/// configuring global level configurations as well.
779828#[ test]
780829fn ratoml_in_root_is_global ( ) {
830+ if skip_slow_tests ( ) {
831+ return ;
832+ }
833+
781834 let server = RatomlTest :: new (
782835 vec ! [
783836 r#"
@@ -806,6 +859,10 @@ fn main() {
806859
807860#[ test]
808861fn ratoml_root_is_updateable ( ) {
862+ if skip_slow_tests ( ) {
863+ return ;
864+ }
865+
809866 let mut server = RatomlTest :: new (
810867 vec ! [
811868 r#"
@@ -836,6 +893,10 @@ fn main() {
836893
837894#[ test]
838895fn ratoml_root_is_deletable ( ) {
896+ if skip_slow_tests ( ) {
897+ return ;
898+ }
899+
839900 let mut server = RatomlTest :: new (
840901 vec ! [
841902 r#"
0 commit comments