Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add Metatests#3504

Closed
iSazonov wants to merge 2 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
iSazonov:metatestsiSazonov/PowerShell:metatestsCopy head branch name to clipboard
Closed

Add Metatests#3504
iSazonov wants to merge 2 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
iSazonov:metatestsiSazonov/PowerShell:metatestsCopy head branch name to clipboard

Conversation

@iSazonov

@iSazonov iSazonov commented Apr 7, 2017

Copy link
Copy Markdown
Collaborator

Related #3347

It is expected that the AppVeyor CI failed.

The meta tests run only on AppVeyor CI and locally.
The meta tests by default check only new and changed files from "current" PR (compared with origin/master).
Therefore, the PR for demo includes test files for each type of validation - this is what causes CI tests to fail. These test files should be deleted before merge.

Now check of all files in Repo is blocked. We can allow it if necessary for example for night builds.

After merging the PR we will have to produce every modified file in line with the meta tests.

@lzybkr

lzybkr commented Apr 14, 2017

Copy link
Copy Markdown
Contributor

I think it's more common to use git commit hooks to enforce the sorts of things this PR is trying to catch.

@iSazonov

Copy link
Copy Markdown
Collaborator Author

It seems users (IDEs) can silently ignore hooks. So anyway we need scripts to perform approved checks.

@lzybkr

lzybkr commented Apr 17, 2017

Copy link
Copy Markdown
Contributor

An IDE could not ignore a server side hook.

@iSazonov

Copy link
Copy Markdown
Collaborator Author

People can all :-)
Even if we add hooks, we still need a script for full code checks, don't we?

With specific regard to hooks, GitHub addins look more attractive. If MSFT can turn such addins for code checks it will be great. Is it possible?

@TravisEz13

Copy link
Copy Markdown
Member

There is code to automatically fix most of the tests you have added here: https://github.com/PowerShell/DscResource.Tests/blob/dev/MetaFixers.psm1

I'd say we separate the hook issue. These tests should be identified in some way that we can create a hook, but we need the tests before we can create a hook.

@iSazonov

iSazonov commented Sep 2, 2017

Copy link
Copy Markdown
Collaborator Author

@TravisEz13 Thanks! We should be careful with MetaFixers.psm1:

  • Not all files is UTF8 (I don't risk to fix this) and some files contain special symbols.
  • Many test files contain tabs and broken formatting

What is our plan? What should I do next?

@stale

stale Bot commented Mar 16, 2018

Copy link
Copy Markdown

This PR has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs within 10 days. Thank you for your contributions.

@stale stale Bot added the Stale label Mar 16, 2018
@daxian-dbw daxian-dbw removed the Stale label Mar 17, 2018
@stale

stale Bot commented Apr 16, 2018

Copy link
Copy Markdown

This PR has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs within 10 days.
Thank you for your contributions.
Community members are welcome to grab these works.

@stale stale Bot added Stale and removed Stale labels Apr 16, 2018
@iSazonov iSazonov deleted the metatests branch April 17, 2020 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.