|  | 
|  | 1 | +{ | 
|  | 2 | +    // See https://go.microsoft.com/fwlink/?LinkId=733558 | 
|  | 3 | +    // for the documentation about the tasks.json format | 
|  | 4 | +    "version": "2.0.0", | 
|  | 5 | +    "tasks": [ | 
|  | 6 | +        { | 
|  | 7 | +            "label": "DSC: Build", | 
|  | 8 | +            "detail": "Compiles the Rust crates and copies all build artifacts into the `bin` folder.", | 
|  | 9 | +            "type": "shell", | 
|  | 10 | +            "command": "${workspaceFolder}/build.new.ps1", | 
|  | 11 | +            "args": [ | 
|  | 12 | +                "-Clippy:${input:Clippy}", | 
|  | 13 | +                "-Verbose", | 
|  | 14 | +            ], | 
|  | 15 | +            "group": { | 
|  | 16 | +                "kind": "build", | 
|  | 17 | +                "isDefault": true, | 
|  | 18 | +            }, | 
|  | 19 | +            "problemMatcher": [], | 
|  | 20 | +        }, | 
|  | 21 | +        { | 
|  | 22 | +            "label": "DSC: Test (All)", | 
|  | 23 | +            "detail": "Tests every project with optional skipping of building the projects, Clippy linting, Rust tests, and Pester tests.", | 
|  | 24 | +            "type": "shell", | 
|  | 25 | +            "command": "${workspaceFolder}/build.new.ps1", | 
|  | 26 | +            "args": [ | 
|  | 27 | +                "-SkipBuild:${input:SkipBuild}", | 
|  | 28 | +                "-Test", | 
|  | 29 | +                "-Clippy:${input:Clippy}", | 
|  | 30 | +                "-ExcludePesterTests:${input:ExcludePesterTests}", | 
|  | 31 | +                "-ExcludeRustTests:${input:ExcludeRustTests}", | 
|  | 32 | +                "-Verbose", | 
|  | 33 | +            ], | 
|  | 34 | +            "group": { | 
|  | 35 | +                "kind": "test", | 
|  | 36 | +                "isDefault": true, | 
|  | 37 | +            }, | 
|  | 38 | +        }, | 
|  | 39 | +        { | 
|  | 40 | +            "label": "DSC: Test Rust", | 
|  | 41 | +            "detail": "Tests the Rust projects with optional skipping of building the projects and Clippy linting.", | 
|  | 42 | +            "type": "shell", | 
|  | 43 | +            "command": "${workspaceFolder}/build.new.ps1", | 
|  | 44 | +            "args": [ | 
|  | 45 | +                "-SkipBuild:${input:SkipBuild}", | 
|  | 46 | +                "-Test", | 
|  | 47 | +                "-Clippy:${input:Clippy}", | 
|  | 48 | +                "-ExcludePesterTests", | 
|  | 49 | +                "-Verbose", | 
|  | 50 | +            ], | 
|  | 51 | +            "group": "test" | 
|  | 52 | +        }, | 
|  | 53 | +    ], | 
|  | 54 | +    "inputs": [ | 
|  | 55 | +        { | 
|  | 56 | +            "id": "SkipBuild", | 
|  | 57 | +            "description": "SkipBuild: Defines whether to skip building the projects.", | 
|  | 58 | +            "type": "pickString", | 
|  | 59 | +            "default": "$false", | 
|  | 60 | +            "options": ["$true", "$false"] | 
|  | 61 | +        }, | 
|  | 62 | +        { | 
|  | 63 | +            "id": "Clippy", | 
|  | 64 | +            "description": "Clippy: Defines whether to lint Rust projects with clippy.", | 
|  | 65 | +            "type": "pickString", | 
|  | 66 | +            "default": "$true", | 
|  | 67 | +            "options": ["$true", "$false"] | 
|  | 68 | +        }, | 
|  | 69 | +        { | 
|  | 70 | +            "id": "ExcludePesterTests", | 
|  | 71 | +            "description": "ExcludePesterTests: Defines whether to test without invoking Pester.", | 
|  | 72 | +            "type": "pickString", | 
|  | 73 | +            "default": "$false", | 
|  | 74 | +            "options": ["$true", "$false"] | 
|  | 75 | +        }, | 
|  | 76 | +        { | 
|  | 77 | +            "id": "ExcludeRustTests", | 
|  | 78 | +            "description": "ExcludePesterTests: Defines whether to test without invoking `cargo test`.", | 
|  | 79 | +            "type": "pickString", | 
|  | 80 | +            "default": "$false", | 
|  | 81 | +            "options": ["$true", "$false"] | 
|  | 82 | +        }, | 
|  | 83 | +    ] | 
|  | 84 | +} | 
0 commit comments