Skip to content

Commit

Permalink
Improve output
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Oct 21, 2024
1 parent 525bd92 commit 2c8c0ab
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions bin/add-practice-exercise.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,17 @@ type ${exerciseName}() =
& dotnet run --project generators --exercise $Exercise

# Output the next steps
$files = Get-Content "exercises/practice/${Exercise}/.meta/config.json" | ConvertFrom-Json | Select-Object -ExpandProperty files
$files = Get-Content "${exerciseDir}/.meta/config.json" | ConvertFrom-Json | Select-Object -ExpandProperty files
Write-Output @"
The '${exerciseName}' exercise has been created in '${exerciseDir}'.
Your next steps are:
- Check the test suite in $($files.test | Join-String -Separator ",")
- If the tests need changes, update the '${exerciseName}' class in the '${generator}' file
and then run: 'dotnet run --project generators --exercise ${Exercise}'
- Any test cases you don't implement, mark them in 'exercises/practice/${slug}/.meta/tests.toml' with "include = false"
- Create the example solution in $($files.example | Join-String -Separator ",")
- Verify the example solution passes the tests by running 'bin/verify-exercises ${slug}'
- Create the stub solution in $($files.solution | Join-String -Separator ",")
- Any test cases you don't implement, mark them in '${exerciseDir}/.meta/tests.toml' with "include = false"
- Create the example solution in '$($files.example | Join-String -Separator "', '")'
- Verify the example solution passes the tests by running 'bin/verify-exercises ${Exercise}'
- Create the stub solution in '$($files.solution | Join-String -Separator "', '")'
- Update the 'difficulty' value for the exercise's entry in the 'config.json' file in the repo's root
- Validate CI using 'bin/configlet lint' and 'bin/configlet fmt'
"@

0 comments on commit 2c8c0ab

Please sign in to comment.