- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.3k
 
Seperate mutation tests #2331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
            martincostello
  merged 10 commits into
  App-vNext:main
from
ShawnWu33:seperate_mutation_tests
  
      
      
   
  Oct 10, 2024 
      
    
  
     Merged
                    Seperate mutation tests #2331
Changes from 5 commits
      Commits
    
    
            Show all changes
          
          
            10 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      67116fa
              
                Seperate mutation test and build tasks in build.cake
              
              
                ShawnWu33 82e44d2
              
                add mutation-test-core
              
              
                ShawnWu33 9c6f9eb
              
                wip
              
              
                ShawnWu33 6203675
              
                add mutation-tests-legacy.yml
              
              
                ShawnWu33 10b949e
              
                clean up
              
              
                ShawnWu33 260bc68
              
                combine mutation tests into one workflow
              
              
                ShawnWu33 f3011fc
              
                Refactor based on feedbacks
              
              
                ShawnWu33 33b1008
              
                Update .github/workflows/mutation-tests.yml
              
              
                ShawnWu33 5e506e7
              
                remove working directory changes when running mutation test
              
              
                ShawnWu33 4cf290e
              
                Update .github/workflows/mutation-tests.yml
              
              
                ShawnWu33 File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| name: mutation-tests-core | ||
                
      
                  martincostello marked this conversation as resolved.
               
              
                Outdated
          
            Show resolved
            Hide resolved
         | 
||
| 
     | 
||
| on: | ||
| push: | ||
| branches: [ main, release/* ] | ||
| tags: [ '*' ] | ||
| pull_request: | ||
| branches: [ main, release/* ] | ||
| workflow_dispatch: | ||
| 
     | 
||
| env: | ||
| DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
| DOTNET_GENERATE_ASPNET_CERTIFICATE: false | ||
| DOTNET_NOLOGO: true | ||
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
| DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: 1 | ||
| NUGET_XMLDOC_MODE: skip | ||
| TERM: xterm | ||
| 
     | 
||
| permissions: | ||
| contents: read | ||
| 
     | 
||
| jobs: | ||
| build: | ||
| name: Run Mutation Test | ||
| runs-on: windows-latest | ||
| timeout-minutes: 60 | ||
| 
     | 
||
| steps: | ||
| 
     | 
||
| - name: Checkout code | ||
| uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | ||
| with: | ||
| fetch-depth: 0 | ||
| 
     | 
||
| - name: Setup .NET SDKs | ||
| uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1 | ||
| with: | ||
| dotnet-version: | | ||
| 6.0.x | ||
| - name: Setup .NET SDK | ||
| uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1 | ||
| id: setup-dotnet | ||
| 
     | 
||
| - name: Setup NuGet cache | ||
| uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | ||
| with: | ||
| path: ~/.nuget/packages | ||
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props') }} | ||
| restore-keys: ${{ runner.os }}-nuget- | ||
| 
     | 
||
| - name: Build and Run Mutation Tests | ||
| id: build | ||
| shell: pwsh | ||
| run: ./build.ps1 -Target MutationCore | ||
| 
     | 
||
| - name: Upload Mutation Report | ||
| if: always() | ||
| uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | ||
| with: | ||
| name: mutation-report-core | ||
| path: ./artifacts/mutation-report | ||
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| name: mutation-tests-legacy | ||
| 
     | 
||
| on: | ||
| push: | ||
| branches: [ main, release/* ] | ||
| tags: [ '*' ] | ||
| pull_request: | ||
| branches: [ main, release/* ] | ||
| workflow_dispatch: | ||
| 
     | 
||
| env: | ||
| DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
| DOTNET_GENERATE_ASPNET_CERTIFICATE: false | ||
| DOTNET_NOLOGO: true | ||
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
| DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: 1 | ||
| NUGET_XMLDOC_MODE: skip | ||
| TERM: xterm | ||
| 
     | 
||
| permissions: | ||
| contents: read | ||
| 
     | 
||
| jobs: | ||
| build: | ||
| name: Run Mutation Test | ||
| runs-on: windows-latest | ||
| timeout-minutes: 60 | ||
| 
     | 
||
| steps: | ||
| 
     | 
||
| - name: Checkout code | ||
| uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | ||
| with: | ||
| fetch-depth: 0 | ||
| 
     | 
||
| - name: Setup .NET SDKs | ||
| uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1 | ||
| with: | ||
| dotnet-version: | | ||
| 6.0.x | ||
| 
     | 
||
| - name: Setup .NET SDK | ||
| uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1 | ||
| id: setup-dotnet | ||
| 
     | 
||
| - name: Setup NuGet cache | ||
| uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | ||
| with: | ||
| path: ~/.nuget/packages | ||
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props') }} | ||
| restore-keys: ${{ runner.os }}-nuget- | ||
| 
     | 
||
| - name: Build and Run Mutation Tests | ||
| id: build | ||
| shell: pwsh | ||
| run: ./build.ps1 -Target MutationLegacy | ||
| 
     | 
||
| - name: Upload Mutation Report | ||
| if: always() | ||
| uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | ||
| with: | ||
| name: mutation-report-legacy | ||
| path: ./artifacts/mutation-report | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.