diff options
author | Piotr Wosiek <piotrwosiek@onet.eu> | 2019-03-13 16:59:16 +0100 |
---|---|---|
committer | Piotr Wosiek <piotrwosiek@onet.eu> | 2019-03-13 16:59:16 +0100 |
commit | b7ba3d903273b8009a066934e8f4bd1ef7a133fa (patch) | |
tree | 55a941db4824eeb3c5698f581bf60365368151ba /lib | |
parent | 2ad6230aa0f8ccf50a922ac3b4b9a264eb09e05b (diff) | |
download | gitlab-ce-b7ba3d903273b8009a066934e8f4bd1ef7a133fa.tar.gz |
Make the testing section more generic
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/templates/dotNET-Core.yml | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/gitlab/ci/templates/dotNET-Core.yml b/lib/gitlab/ci/templates/dotNET-Core.yml index 0f96b040e3b..3afac7bfff0 100644 --- a/lib/gitlab/ci/templates/dotNET-Core.yml +++ b/lib/gitlab/ci/templates/dotNET-Core.yml @@ -49,7 +49,7 @@ build: script: - 'dotnet build' -unit tests: +tests: stage: test # Despite the fact that the project was already built and restored, # a dependency restore must be performed again. @@ -57,9 +57,11 @@ unit tests: - 'dotnet restore' # Run the tests # -# You can either run tests only for specific project (like shown below) -# or run tests for all test projects that are defined in a solution file -# with 'dotnet test'. You may want to define separate jobs for separate -# testing projects e.g. IntegrationTests, UnitTests etc. +# You can either run tests for all test projects that are defined in your solution +# with 'dotnet test' or run tests only for specific project by specifying +# a relative path to the directory where it is located e.g. 'dotnet test ./test/UnitTests'. +# +# You may want to define separate testing jobs for different types of testing +# e.g. integration tests, unit tests etc. script: - - 'dotnet test ./test/UnitTests' + - 'dotnet test' |