Skip to content

[release] relaxing VS Version check based on user feedback. #26 #172

[release] relaxing VS Version check based on user feedback. #26

[release] relaxing VS Version check based on user feedback. #26 #172

GitHub Actions / Tests Results succeeded Dec 20, 2023 in 1s

Tests Results ✅

Tests passed successfully

✅ TestResults/runneradmin_fv-az742-19_2023-12-20_16_17_02.trx

158 tests were completed in 61s with 158 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
KS.RustAnalyzer.TestAdapter.UnitTests.Cargo.BuildJsonOutputParserTests 9✅ 183ms
KS.RustAnalyzer.TestAdapter.UnitTests.Cargo.MetadataServiceTests 8✅ 407ms
KS.RustAnalyzer.TestAdapter.UnitTests.Cargo.ToolChainServiceTests 20✅ 15s
KS.RustAnalyzer.TestAdapter.UnitTests.Cargo.WorkspaceExtensionsTests 19✅ 6s
KS.RustAnalyzer.TestAdapter.UnitTests.Common.EnvironmentExtensionsTests 16✅ 61ms
KS.RustAnalyzer.TestAdapter.UnitTests.Common.PathExTests 4✅ 27ms
KS.RustAnalyzer.TestAdapter.UnitTests.TestDiscovererTests 3✅ 20s
KS.RustAnalyzer.TestAdapter.UnitTests.TestExecutorTests 3✅ 13s
KS.RustAnalyzer.UnitTests.Editor.FileContextProviderTests 19✅ 7s
KS.RustAnalyzer.UnitTests.Editor.FileScannerTests 38✅ 8s
KS.RustAnalyzer.UnitTests.Infrastructure.StringBuildMessagePreprocessorTests 5✅ 3s
KS.RustAnalyzer.UnitTests.Infrastructure.StringExtensionsTests 13✅ 3s
KS.RustAnalyzer.UnitTests.RAExeRelease 1✅ 2s

✅ KS.RustAnalyzer.TestAdapter.UnitTests.Cargo.BuildJsonOutputParserTests

✅ IfNotParsableReturnAsIs
✅ ParseCompilerArtifiacts(dataFile: "CompilerArtifact1.json")
✅ ParseCompilerArtifiacts(dataFile: "CompilerArtifact2.json")
✅ ParseCompilerArtifiacts(dataFile: "CompilerArtifact3.json")
✅ ParseCompilerMessages(dataFile: "ComplexError1.json")
✅ ParseCompilerMessages(dataFile: "ComplexError2.json")
✅ ParseCompilerMessages(dataFile: "ComplexError3.json")
✅ ParseCompilerMessages(dataFile: "ComplexError4.json")
✅ ParseCompilerMessages(dataFile: "ComplexWarning1.json")

✅ KS.RustAnalyzer.TestAdapter.UnitTests.Cargo.MetadataServiceTests

✅ InvalidOperationExceptionOnInvalidManifestAsync(workspaceRelRoot: "corrupted_manifest")
✅ InvalidOperationExceptionOnInvalidManifestAsync(workspaceRelRoot: "corrupted_manifest2")
✅ PackagesAddedRemovedEventsGetFiredAsync(workspaceRelRoot: "hello_world")
✅ PackagesCacheShouldBeInvalidatedAsync(workspaceRelRoot: "hello_world")
✅ PackagesShouldBeCachedAsync(workspaceRelRoot: "hello_world")
✅ TestContainerUpdatedEventsGetFiredAsync(workspaceRelRoot: "hello_world")
✅ WorkspaceWithoutRootCargoManifestAsync(workspaceRelRoot: "hello_library", packageName: "hello_lib")
✅ WorkspaceWithoutRootCargoManifestAsync(workspaceRelRoot: "hello_world", packageName: "hello_world")

✅ KS.RustAnalyzer.TestAdapter.UnitTests.Cargo.ToolChainServiceTests

✅ AdditionalBuildArgsTestsAsync(workspaceRelRoot: "bin_with_example", profile: "dev")
✅ BuildTestsAsync(workspaceRelRoot: "hello_library", profile: "dev")
✅ BuildTestsAsync(workspaceRelRoot: "hello_workspace", profile: "dev")
✅ BuildTestsAsync(workspaceRelRoot: "hello_world", profile: "dev")
✅ BuildTestsAsync(workspaceRelRoot: "workspace_mixed", profile: "dev")
✅ CheckParentsTestsAsync(workspaceRelRoot: "hello_library")
✅ CheckParentsTestsAsync(workspaceRelRoot: "hello_workspace")
✅ CheckParentsTestsAsync(workspaceRelRoot: "hello_world")
✅ CheckParentsTestsAsync(workspaceRelRoot: "workspace_mixed")
✅ GetMetadataTestsAsync(workspaceRelRoot: "hello_workspace")
✅ GetMetadataTestsAsync(workspaceRelRoot: "hello_world")
✅ GetMetadataTestsAsync(workspaceRelRoot: "workspace_mixed")
✅ GetTestSuiteTestsAsync(workspaceRelRoot: "hello_library", containerName: "hello_lib_libhello_lib.rusttests", profile: "release")
✅ GetTestSuiteTestsAsync(workspaceRelRoot: "hello_world", containerName: "hello_world_hello_world.rusttests", profile: "release")
✅ RootPackageIsAddedAsync(workspaceRelRoot: "hello_workspace")
✅ RootPackageIsAddedAsync(workspaceRelRoot: "hello_workspace/main/..")
✅ RootPackageIsNotAddedAsync(workspaceRelRoot: "hello_library")
✅ RootPackageIsNotAddedAsync(workspaceRelRoot: "hello_world")
✅ RootPackageIsNotAddedAsync(workspaceRelRoot: "hello_world/src/..")
✅ RootPackageIsNotAddedAsync(workspaceRelRoot: "workspace_mixed")

✅ KS.RustAnalyzer.TestAdapter.UnitTests.Cargo.WorkspaceExtensionsTests

✅ CanHaveExecutableTargetsTestsAsync(relativePath: "does_not_exist\\workspace_with_example\\lib\\examp"..., relWorkspaceRoot: "does_not_exist", canHaveExecutableTargets: False, doesHaveTargets: False)
✅ CanHaveExecutableTargetsTestsAsync(relativePath: "hello_library\\Cargo.toml", relWorkspaceRoot: "hello_library", canHaveExecutableTargets: False, doesHaveTargets: True)
✅ CanHaveExecutableTargetsTestsAsync(relativePath: "hello_library\\src\\lib.rs", relWorkspaceRoot: "hello_library", canHaveExecutableTargets: False, doesHaveTargets: True)
✅ CanHaveExecutableTargetsTestsAsync(relativePath: "hello_workspace\\main\\Cargo.toml", relWorkspaceRoot: "hello_workspace", canHaveExecutableTargets: True, doesHaveTargets: True)
✅ CanHaveExecutableTargetsTestsAsync(relativePath: "hello_workspace\\main\\src\\main.rs", relWorkspaceRoot: "hello_workspace", canHaveExecutableTargets: True, doesHaveTargets: True)
✅ CanHaveExecutableTargetsTestsAsync(relativePath: "hello_workspace\\main\\src\\main.txt", relWorkspaceRoot: "hello_workspace", canHaveExecutableTargets: False, doesHaveTargets: False)
✅ CanHaveExecutableTargetsTestsAsync(relativePath: "not_a_project\\src\\main.rs", relWorkspaceRoot: "not_a_project", canHaveExecutableTargets: False, doesHaveTargets: False)
✅ CanHaveExecutableTargetsTestsAsync(relativePath: "workspace_with_example\\lib\\examples\\eg1.rs", relWorkspaceRoot: "workspace_with_example", canHaveExecutableTargets: True, doesHaveTargets: True)
✅ CanHaveExecutableTargetsTestsAsync(relativePath: "workspace_with_example\\lib\\examples\\eg2\\main.r"..., relWorkspaceRoot: "workspace_with_example", canHaveExecutableTargets: True, doesHaveTargets: True)
✅ CanHaveExecutableTargetsTestsAsync(relativePath: "workspace_with_example\\lib\\examples\\eg2\\utils."..., relWorkspaceRoot: "workspace_with_example", canHaveExecutableTargets: False, doesHaveTargets: True)
✅ GetContainingManifestOrThisForInvalidTests(fileOrFolder: "c:\\workspace_with_example\\lib\\examples\\eg1.rs", workspaceRelRoot: "workspace_with_example")
✅ GetContainingManifestOrThisForInvalidTests(fileOrFolder: "not_a_project\\src", workspaceRelRoot: "not_a_project")
✅ GetContainingManifestOrThisForInvalidTests(fileOrFolder: "not_a_project\\src\\main.rs", workspaceRelRoot: "not_a_project")
✅ GetContainingManifestOrThisTests(fileOrFolder: "hello_library\\Cargo.toml", workspaceRelRoot: "hello_library", parentCargoRelPath: "hello_library\\Cargo.toml")
✅ GetContainingManifestOrThisTests(fileOrFolder: "hello_library\\src\\lib.rs", workspaceRelRoot: "hello_library", parentCargoRelPath: "hello_library\\Cargo.toml")
✅ GetContainingManifestOrThisTests(fileOrFolder: "hello_workspace\\main\\Cargo.toml", workspaceRelRoot: "hello_workspace", parentCargoRelPath: "hello_workspace\\main\\Cargo.toml")
✅ GetContainingManifestOrThisTests(fileOrFolder: "hello_workspace\\main\\src", workspaceRelRoot: "hello_workspace", parentCargoRelPath: "hello_workspace\\main\\Cargo.toml")
✅ GetContainingManifestOrThisTests(fileOrFolder: "hello_workspace\\main\\src\\main.rs", workspaceRelRoot: "hello_workspace", parentCargoRelPath: "hello_workspace\\main\\Cargo.toml")
✅ GetContainingManifestOrThisTests(fileOrFolder: "workspace_with_example\\lib\\examples\\eg1.rs", workspaceRelRoot: "workspace_with_example", parentCargoRelPath: "workspace_with_example\\lib\\Cargo.toml")

✅ KS.RustAnalyzer.TestAdapter.UnitTests.Common.EnvironmentExtensionsTests

✅ EnvBlockToEnvDictRoundTripTests(envBlock: "\0")
✅ EnvBlockToEnvDictRoundTripTests(envBlock: "A B=this\" is a\"b\0XX=this is xx\0A=a\0\0")
✅ EnvBlockToEnvDictRoundTripTests(envBlock: "a=x\0abc=x\0\0")
✅ EnvBlockToEnvDictRoundTripTests(envBlock: "abc=x\0\0")
✅ EnvBlockToEnvDictRoundTripTests(envBlock: null)
✅ EnvDictToEnvBlockRoundTripTests
✅ GetDictionaryFromEnvironmentBlockTests(envBlock: "\0", dict: "")
✅ GetDictionaryFromEnvironmentBlockTests(envBlock: "A B=this\" is a\"b\0XX=this is xx\0A=a\0\0", dict: "A B|this\" is a\"b||XX|this is xx||A|a")
✅ GetDictionaryFromEnvironmentBlockTests(envBlock: "a=x\0abc=x\0\0", dict: "a|x||abc|x")
✅ GetDictionaryFromEnvironmentBlockTests(envBlock: "abc=x\0\0", dict: "abc|x")
✅ GetDictionaryFromEnvironmentBlockTests(envBlock: null, dict: "")
✅ OverrideWithEnvironmentBlockTests(envBlock: "\0")
✅ OverrideWithEnvironmentBlockTests(envBlock: "OS=macOS\0\0")
✅ OverrideWithEnvironmentBlockTests(envBlock: "SYSTEMRoot=???\0abc=x\0\0")
✅ OverrideWithEnvironmentBlockTests(envBlock: "USERDOMAIN=this\" is a\"b\0ProgramFiles(x86)=this "...)
✅ OverrideWithEnvironmentBlockTests(envBlock: null)

✅ KS.RustAnalyzer.TestAdapter.UnitTests.Common.PathExTests

✅ EqualityTests(path: "abC", equivalentPath: "Abc")
✅ EqualityTests(path: "hello_library\\Cargo.toml", equivalentPath: "hello_library/Cargo.toml")
✅ TostringTests(path: "abc", equivalentPath: "abc")
✅ TostringTests(path: "abc/A", equivalentPath: "abc\\A")

✅ KS.RustAnalyzer.TestAdapter.UnitTests.TestDiscovererTests

✅ AdditionalBuildArgsTestsAsync(workspaceRelRoot: "bin_with_example", containerName: "hello_world_hello_world.rusttests", profile: "dev")
✅ DiscoverTestsTestsAsync(workspaceRelRoot: "hello_library", containerName: "hello_lib_libhello_lib.rusttests", profile: "dev")
✅ DiscoverTestsTestsAsync(workspaceRelRoot: "hello_world", containerName: "hello_world_hello_world.rusttests", profile: "dev")

✅ KS.RustAnalyzer.TestAdapter.UnitTests.TestExecutorTests

✅ RunSelectedTestsFromMultiplePackagesMultipleFilesTestsAsync(workspaceRelRoot: "workspace_with_tests", tests: ["add_one_libadd_one|tests.fibonacci_test.case_2", "adder_adder|tests.it_works_failing", "adder_adder|tests1.tests1.it_works_skipped2"], profile: "test")
✅ RunTestsTestsAsync(workspaceRelRoot: "hello_library", containerName: "hello_lib_libhello_lib.rusttests", profile: "bench")
✅ RunTestsTestsAsync(workspaceRelRoot: "hello_world", containerName: "hello_world_hello_world.rusttests", profile: "bench")

✅ KS.RustAnalyzer.UnitTests.Editor.FileContextProviderTests

✅ GetContextsForFileTestsAsync(workspaceRootRel: "hello_library", filePathRel: "Cargo.toml")
✅ GetContextsForFileTestsAsync(workspaceRootRel: "hello_library", filePathRel: "src\\lib.rs")
✅ GetContextsForFileTestsAsync(workspaceRootRel: "hello_workspace", filePathRel: "Cargo.toml")
✅ GetContextsForFileTestsAsync(workspaceRootRel: "hello_workspace", filePathRel: "main\\Cargo.toml")
✅ GetContextsForFileTestsAsync(workspaceRootRel: "hello_workspace", filePathRel: "main\\src\\main.rs")
✅ GetContextsForFileTestsAsync(workspaceRootRel: "hello_workspace", filePathRel: "shared\\Cargo.toml")
✅ GetContextsForFileTestsAsync(workspaceRootRel: "hello_workspace", filePathRel: "shared\\src\\lib.rs")
✅ GetContextsForFileTestsAsync(workspaceRootRel: "hello_workspace2", filePathRel: "Cargo.toml")
✅ GetContextsForFileTestsAsync(workspaceRootRel: "hello_world", filePathRel: "Cargo.toml")
✅ GetContextsForFileTestsAsync(workspaceRootRel: "hello_world", filePathRel: "src\\main.rs")
✅ GetContextsForFileTestsAsync(workspaceRootRel: "workspace_mixed", filePathRel: "Cargo.toml")
✅ GetContextsForFileTestsAsync(workspaceRootRel: "workspace_mixed", filePathRel: "shared\\Cargo.toml")
✅ GetContextsForFileTestsAsync(workspaceRootRel: "workspace_mixed", filePathRel: "shared\\src\\lib.rs")
✅ GetContextsForFileTestsAsync(workspaceRootRel: "workspace_mixed", filePathRel: "src\\libx.rs")
✅ GetContextsForFileTestsAsync(workspaceRootRel: "workspace_mixed", filePathRel: "src\\main.rs")
✅ GetContextsForFileTestsAsync(workspaceRootRel: "workspace_with_example", filePathRel: "lib\\examples\\eg1.rs")
✅ GetContextsForFileTestsAsync(workspaceRootRel: "workspace_with_example", filePathRel: "lib\\examples\\eg2\\main.rs")
✅ GetContextsForFileTestsAsync(workspaceRootRel: "workspace_with_example", filePathRel: "lib\\examples\\eg2\\utils.rs")
✅ GetContextsForFileTestsAsync(workspaceRootRel: "workspace_with_example", filePathRel: "main\\src\\main.rs")

✅ KS.RustAnalyzer.UnitTests.Editor.FileScannerTests

✅ ScanContentFileDataValueTestsAsync(workspaceRootRel: "hello_library", filePathRel: "Cargo.toml")
✅ ScanContentFileDataValueTestsAsync(workspaceRootRel: "hello_library", filePathRel: "src\\lib.rs")
✅ ScanContentFileDataValueTestsAsync(workspaceRootRel: "hello_workspace", filePathRel: "Cargo.toml")
✅ ScanContentFileDataValueTestsAsync(workspaceRootRel: "hello_workspace", filePathRel: "main\\Cargo.toml")
✅ ScanContentFileDataValueTestsAsync(workspaceRootRel: "hello_workspace", filePathRel: "main\\src\\main.rs")
✅ ScanContentFileDataValueTestsAsync(workspaceRootRel: "hello_workspace", filePathRel: "shared\\Cargo.toml")
✅ ScanContentFileDataValueTestsAsync(workspaceRootRel: "hello_workspace", filePathRel: "shared\\src\\lib.rs")
✅ ScanContentFileDataValueTestsAsync(workspaceRootRel: "hello_workspace2", filePathRel: "Cargo.toml")
✅ ScanContentFileDataValueTestsAsync(workspaceRootRel: "hello_world", filePathRel: "Cargo.toml")
✅ ScanContentFileDataValueTestsAsync(workspaceRootRel: "hello_world", filePathRel: "src\\main.rs")
✅ ScanContentFileDataValueTestsAsync(workspaceRootRel: "workspace_mixed", filePathRel: "Cargo.toml")
✅ ScanContentFileDataValueTestsAsync(workspaceRootRel: "workspace_mixed", filePathRel: "shared\\Cargo.toml")
✅ ScanContentFileDataValueTestsAsync(workspaceRootRel: "workspace_mixed", filePathRel: "shared\\src\\lib.rs")
✅ ScanContentFileDataValueTestsAsync(workspaceRootRel: "workspace_mixed", filePathRel: "src\\libx.rs")
✅ ScanContentFileDataValueTestsAsync(workspaceRootRel: "workspace_mixed", filePathRel: "src\\main.rs")
✅ ScanContentFileDataValueTestsAsync(workspaceRootRel: "workspace_with_example", filePathRel: "lib\\examples\\eg1.rs")
✅ ScanContentFileDataValueTestsAsync(workspaceRootRel: "workspace_with_example", filePathRel: "lib\\examples\\eg2\\main.rs")
✅ ScanContentFileDataValueTestsAsync(workspaceRootRel: "workspace_with_example", filePathRel: "lib\\examples\\eg2\\utils.rs")
✅ ScanContentFileDataValueTestsAsync(workspaceRootRel: "workspace_with_example", filePathRel: "main\\src\\main.rs")
✅ ScanContentFileRefInfoTestsAsync(workspaceRootRel: "hello_library", filePathRel: "Cargo.toml")
✅ ScanContentFileRefInfoTestsAsync(workspaceRootRel: "hello_library", filePathRel: "src\\lib.rs")
✅ ScanContentFileRefInfoTestsAsync(workspaceRootRel: "hello_workspace", filePathRel: "Cargo.toml")
✅ ScanContentFileRefInfoTestsAsync(workspaceRootRel: "hello_workspace", filePathRel: "main\\Cargo.toml")
✅ ScanContentFileRefInfoTestsAsync(workspaceRootRel: "hello_workspace", filePathRel: "main\\src\\main.rs")
✅ ScanContentFileRefInfoTestsAsync(workspaceRootRel: "hello_workspace", filePathRel: "shared\\Cargo.toml")
✅ ScanContentFileRefInfoTestsAsync(workspaceRootRel: "hello_workspace", filePathRel: "shared\\src\\lib.rs")
✅ ScanContentFileRefInfoTestsAsync(workspaceRootRel: "hello_workspace2", filePathRel: "Cargo.toml")
✅ ScanContentFileRefInfoTestsAsync(workspaceRootRel: "hello_world", filePathRel: "Cargo.toml")
✅ ScanContentFileRefInfoTestsAsync(workspaceRootRel: "hello_world", filePathRel: "src\\main.rs")
✅ ScanContentFileRefInfoTestsAsync(workspaceRootRel: "workspace_mixed", filePathRel: "Cargo.toml")
✅ ScanContentFileRefInfoTestsAsync(workspaceRootRel: "workspace_mixed", filePathRel: "shared\\Cargo.toml")
✅ ScanContentFileRefInfoTestsAsync(workspaceRootRel: "workspace_mixed", filePathRel: "shared\\src\\lib.rs")
✅ ScanContentFileRefInfoTestsAsync(workspaceRootRel: "workspace_mixed", filePathRel: "src\\libx.rs")
✅ ScanContentFileRefInfoTestsAsync(workspaceRootRel: "workspace_mixed", filePathRel: "src\\main.rs")
✅ ScanContentFileRefInfoTestsAsync(workspaceRootRel: "workspace_with_example", filePathRel: "lib\\examples\\eg1.rs")
✅ ScanContentFileRefInfoTestsAsync(workspaceRootRel: "workspace_with_example", filePathRel: "lib\\examples\\eg2\\main.rs")
✅ ScanContentFileRefInfoTestsAsync(workspaceRootRel: "workspace_with_example", filePathRel: "lib\\examples\\eg2\\utils.rs")
✅ ScanContentFileRefInfoTestsAsync(workspaceRootRel: "workspace_with_example", filePathRel: "main\\src\\main.rs")

✅ KS.RustAnalyzer.UnitTests.Infrastructure.StringBuildMessagePreprocessorTests

✅ ProcessorTests(msg: "  --> main\\src\\main.rs:26:5", processedMsgs: ["D:\\src\\ks\\main\\src\\main.rs(26,5): error: clip"..., "  --> main\\src\\main.rs:26:5"])
✅ ProcessorTests(msg: " --> src\\main.rs:1:2", processedMsgs: ["D:\\src\\ks\\src\\main.rs(1,2): error: clippy", " --> src\\main.rs:1:2"])
✅ ProcessorTests(msg: "\x1b[0m\x1b[31m-        value: 20,", processedMsgs: ["-        value: 20,"])
✅ ProcessorTests(msg: "\x1b[31m-    let model_a2 = ModelA2 {", processedMsgs: ["-    let model_a2 = ModelA2 {"])
✅ ProcessorTests(msg: "Diff in \\\\?\\D:\\src\\ks\\\\main.rs at line 25:", processedMsgs: ["D:\\src\\ks\\\\main.rs(25,1): warning: diffs creat"...])

✅ KS.RustAnalyzer.UnitTests.Infrastructure.StringExtensionsTests

✅ GetEnvironmentBlockTests(str: " a=x   abc=x ", envBlock: "a=x\0abc=x\0\0")
✅ GetEnvironmentBlockTests(str: "", envBlock: "\0")
✅ GetEnvironmentBlockTests(str: "\"A B=this\"\" is a\"\"b\" \"XX=this is xx\" A=a", envBlock: "A B=this\" is a\"b\0XX=this is xx\0A=a\0\0")
✅ GetEnvironmentBlockTests(str: "a abc=x", envBlock: "abc=x\0\0")
✅ GetEnvironmentBlockTests(str: "a= abc=x", envBlock: "abc=x\0\0")
✅ GetEnvironmentBlockTests(str: "a=x abc=x", envBlock: "a=x\0abc=x\0\0")
✅ GetEnvironmentBlockTests(str: "a=x=1 abc=x", envBlock: "abc=x\0\0")
✅ GetEnvironmentBlockTests(str: "abc", envBlock: "\0")
✅ GetEnvironmentBlockTests(str: "abc=", envBlock: "\0")
✅ GetEnvironmentBlockTests(str: "abc=x", envBlock: "abc=x\0\0")
✅ GetEnvironmentBlockTests(str: "abc=x=1", envBlock: "\0")
✅ ToNullSeparatedArrayTests(str: "--config \"build.rustflags = '--cfg foo=bar'\"", nullSepParts: "--config\0build.rustflags = '--cfg foo=bar'")
✅ ToNullSeparatedArrayTests(str: "", nullSepParts: "")

✅ KS.RustAnalyzer.UnitTests.RAExeRelease

✅ LastUpdateShouldNotBeOlderThan30DaysAsync