GithubHelp home page GithubHelp logo

Comments (10)

tysonjhayes avatar tysonjhayes commented on May 10, 2024

I realize there isn't much logic but I'd still like to see some pester tests, even if it just runs Test-xDSCResource and Test-xDSCSchema just to validate that any future changes have some kind of baseline to run against.

from dscresources.

mgreenegit avatar mgreenegit commented on May 10, 2024

That sounds like a reasonable plan. I have added a verbose transcript of test-xdscresource, test-xdscschema, and invoke-pester. Metadata removed. Long term these three should merge. I am willing to work on it, when time allows.
https://github.com/mgreenegit/xDefender/blob/master/test_transcript_verbose.txt

from dscresources.

mgreenegit avatar mgreenegit commented on May 10, 2024

I should also note that I would expect the transcript file to be removed after transfer.

from dscresources.

tysonjhayes avatar tysonjhayes commented on May 10, 2024

😆 I guess that is what I asked for. I meant add the tests to your repro so anyone can run it every time.

I meant more something like this:
https://github.com/PowerShell/xWebAdministration/blob/dev/Tests/MSFT_xWebsite.Tests.ps1

from dscresources.

mgreenegit avatar mgreenegit commented on May 10, 2024

I agree with you. I think the best option is to add those checks to the dscResource.tests script, so all resources are evaluated by the build service.

https://github.com/powerShell/dscResource.tests

from dscresources.

tysonjhayes avatar tysonjhayes commented on May 10, 2024

Yup, already have an issue filed to run most of what I've pointed out. PowerShell/DscResource.Tests#3

from dscresources.

mgreenegit avatar mgreenegit commented on May 10, 2024

The ReadMe file for this module has been updated to match the new template. Confirm whether it is acceptable to transfer?

from dscresources.

KarolKaczmarek avatar KarolKaczmarek commented on May 10, 2024

Thank you for transferring this!

Overall it looks good, just a couple comments:

  • This module contains single resource, but in readme release notes, I see:
0.1.0.0

Initial release with the following resources:
<and here list all properties of that resource>

we should just list a single resource there, not properties.

  • Can you clean up the commented out code? e.g.
# Get-TargetResource -Name DefenderPreferences -HighThreatDefaultAction Quarantine

If that's supposed to act as example of calls for each function, please move it to .EXAMPLE section in comment above that function

<#
    .SYNOPSIS <description>
    .PARAM
        parameter_name <description of parameter>
    .EXAMPLE
        <example>
#>

from dscresources.

mgreenegit avatar mgreenegit commented on May 10, 2024

I have resolved everything except the example text. I want to discuss that change before we commit to it. Transfer complete. Thanks.

from dscresources.

KarolKaczmarek avatar KarolKaczmarek commented on May 10, 2024

It's in: github.com/powershell/xdefender/

from dscresources.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.