Skip to content

C#: Start using 'options' files in tests #6181

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
merged 4 commits into from
Jul 1, 2021

Conversation

tamasvajk
Copy link
Contributor

@tamasvajk tamasvajk commented Jun 29, 2021

This PR moves all semmle-extractor-options: from .cs files to options files in the test folder. Except:

  • the ASP extractor also reads options files, and we can't mix C# options with ASP options, so semmle-extractor-options from .cs files where the folder also contains .aspx files are not moved.
  • --separate-compilation is still file based, so these extractor options are not moved from .cs files.

@github-actions github-actions bot added the C# label Jun 29, 2021
@tamasvajk tamasvajk force-pushed the feature/test-options-files branch from d1a3e2c to ffbfef6 Compare June 29, 2021 14:08
@tamasvajk tamasvajk force-pushed the feature/test-options-files branch from 040e88b to 9cba243 Compare June 30, 2021 08:28
@tamasvajk
Copy link
Contributor Author

tamasvajk commented Jun 30, 2021

Tests are passing after the first 4 commits (moving extractor options to options files). Only csharp/ql/test/query-tests/Stubs/Minimal/MinimalStubsFromSource.expected had to be updated.

@tamasvajk tamasvajk marked this pull request as ready for review June 30, 2021 18:33
@tamasvajk tamasvajk requested a review from a team as a code owner June 30, 2021 18:33
hvitved
hvitved previously approved these changes Jul 1, 2021
Copy link
Contributor

@hvitved hvitved left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thanks for making this change. Feel free to remove commits ffbfef6 and ab4b7b0 from the history, if you want.

@tamasvajk
Copy link
Contributor Author

@hvitved Thanks for the review. I rebased this PR, and removed the two commits.

@tamasvajk tamasvajk merged commit 05842dc into github:main Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants