Skip to content

Status Updates: Template

Raja Soundaramourty edited this page May 16, 2022 · 18 revisions

Environment: Windows

Reference: README

1. Prerequisites Checks

Step: [1.1] Windows Version

Command

Get-ComputerInfo | select WindowsProductName, WindowsVersion

Output

Step: [1.2] HyperV is Enabled

Command

systeminfo /fo csv | ConvertFrom-Csv | select OS*, System*, Hotfix*,Hyper-V* | Format-List

Output

2. Setup

2.1 Workspace & Applications

Step: [2.1.1] Workspace

Command

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope currentuser
iwr -useb https://raw.githubusercontent.com/rajasoun/win10x-onboard/main/e2e.ps1 | iex
cd ~\workspace
git clone https://github.com/rajasoun/win10x-onboard
cd win10x-onboard
Invoke-Pester src\lib\Workspace.Tests.ps1 -Output Detailed

Output

Step: [2.1.2] Applications Setup

Command

.\e2e.ps1 apps

Output

Step: [2.1.3] Check Applications Setup

Command

.\e2e.ps1 apps-setup-test

Output

2.2 HyperV

Step: [2.2.1] Enable HyperV

Command

.\e2e.ps1 elevate

In New Elevated Shell as Administrator

.\e2e.ps1 -type hyperv

Output

2.3 WSL2 & Kernel Update

Step: [2.3] WSL2 & Kernel Update

Command

.\e2e.ps1 elevate

In New Elevated Shell as Administrator

.\e2e.ps1 -type wsl

Output

2.4 Install Docker Desktop

Install Docker Desktop & Launch It

Output

2.5 Test Docker Setup

Step: [2.5.1] Bash Setup

Command

.\e2e.ps1 bash-it
nix/assist.sh bash-setup

Output

Step: [2.5.2] Docker hello-world Command

docker run --rm hello-world

Output

Step: [2.5.3] Docker speed-test

Command

MSYS_NO_PATHCONV=1  docker run --rm rajasoun/speedtest:0.1.0 "/go/bin/speedtest-go"

Output

Step: [2.5.4] Switch to Powershell

Command

exit

Output

3. Test

3.1 TDD Scripts

Step: [3.1.1] Workspace Tests

Command

.\e2e.ps1 apps-setup-test

Output

Step: [3.1.2] Application Tests

Command

.\e2e.ps1 elevate

In the New Elevated Powershell as Administrator

.\e2e.ps1 system-setup-test

Output

3.2 ATDD Scripts

Step: [3.2.1] Prerequisite Tests

Command

Invoke-Pester e2e.Tests.ps1 -Tag "prerequisite"  -Output Detailed

Output

Command

Invoke-Pester e2e.Tests.ps1 -Tag "apps"   -Output Detailed

Output