Skip to content

Instantly share code, notes, and snippets.

@vmandic
Created March 15, 2023 09:50
Show Gist options
  • Save vmandic/5afb5b9577eca9cf3b8fdcb85dde4bdd to your computer and use it in GitHub Desktop.
Save vmandic/5afb5b9577eca9cf3b8fdcb85dde4bdd to your computer and use it in GitHub Desktop.
Run all dotnet tests in /test directory with npm / yarn command
"test": "for file in $(find ./tests -name '*.csproj'); do dotnet test $file || exit; done"
@vmandic
Copy link
Author

vmandic commented Mar 15, 2023

This will short circuit out execution of following csprojs if any in sequence fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment