awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目MCP 服务器关于排名机制媒体报道
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
pester avatar

pester/Pester

0
View on GitHub↗
3,262 星标·478 分支·PowerShell·other·13 次浏览pester.dev↗

Pester

Pester is a PowerShell testing framework and behavior-driven development tool used to write and run automated tests for scripts and modules. It defines and verifies software behavior through human-readable specifications to validate that code behaves as expected.

The project includes a native mocking library that replaces real functions and commands with controlled implementations, allowing for the isolation of code and verification of command invocations without altering the system environment. It also functions as a code coverage tool that measures the percentage of executed lines during test runs to identify untested logic and branches.

Broad capabilities cover the management of test lifecycles through shared setup and teardown logic and the organization of test suites into nested groups. The framework provides specialized assertions to validate code behavior and integrates with continuous integration servers to automate test execution within build pipelines.

Features

  • Automated Test Execution - Executes scripts containing test definitions and reports whether code behaves as expected through detailed console output.
  • Behavior Driven Development Frameworks - Functions as a behavior-driven development framework using human-readable specifications to verify software behavior.
  • Native Runtime Execution - Runs tests directly within the PowerShell runtime to leverage native language features and system-level access.
  • Mock Implementations - Replaces actual function implementations with fake counterparts to isolate logic and test interactions without side effects.
  • Assertion Libraries - Ships a versatile set of specialized assertions for validating code outputs, file states, and general logic.
  • Interaction Verifiers - Provides utilities to verify the number of times and the specific arguments used in mocked command calls.
  • Function Behavior Replacement - Intercepts function calls to return predefined values, simulating dependencies by replacing real command behavior.
  • Mocking and Spying Libraries - Includes a native mocking library to replace real functions and commands with controlled implementations for isolation.
  • Outcome Verification - Compares actual values against expected criteria to determine if a test passes or fails.
  • PowerShell Testing Frameworks - Provides a complete framework for writing and running automated tests to validate the behavior of PowerShell scripts.
  • Dependency Mocking - Replaces real function dependencies with controlled substitutes to isolate code under test.
  • Command Interception - Provides a dynamic engine that replaces PowerShell commands and functions at runtime to intercept calls and control return values.
  • PowerShell - Provides a dedicated framework for writing and running automated unit tests for PowerShell scripts and modules.
  • State Expectation Validation - Compares current system states and values against expected values to verify that code behavior meets specific criteria.
  • CI Pipeline Integrations - Provides native support for executing automated testing pipelines within continuous integration environments.
  • Continuous Integration Pipelines - Integrates automated test execution into continuous integration pipelines to validate code quality before merging.
  • Code Coverage Analysis - Provides tools and metrics to measure the extent to which source code is executed by a test suite.
  • Code Coverage Tools - Measures the percentage of executed lines during test runs to identify untested logic and branches.
  • Test Lifecycle and Execution Control - Implements mechanisms for managing test suite organization and execution flow via setup and teardown hooks.
  • Test Lifecycle Hooks - Provides mechanisms for executing setup and teardown logic before and after tests to ensure environment consistency.
  • Nested Setup Nodes - Organizes test suites into hierarchical blocks to manage scope and shared setup logic.
  • Test Suite Organization - Offers methods for structuring and grouping individual test functions into manageable suites using nested blocks.
  • Testing - BDD-style testing framework for scripts.

Star 历史

pester/pester 的 Star 历史图表pester/pester 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Pester 的开源替代方案

相似的开源项目,按与 Pester 的功能重合度排序。
  • thomhurst/tunitthomhurst 的头像

    thomhurst/TUnit

    3,744在 GitHub 上查看↗

    TUnit is a comprehensive C# testing framework, mocking library, and fluent assertion tool. It utilizes source generation for test discovery and mock creation, ensuring compatibility with Native AOT and IL trimming by eliminating the need for runtime reflection and proxies. The framework provides specialized capabilities for integration testing, including the management of distributed application lifecycles, isolated database schemas, and the correlation of telemetry and logs across process boundaries via OTLP. It also includes an HTTP testing utility to intercept network exchanges and mock AP

    C#csharpdotnettest
    在 GitHub 上查看↗3,744
  • jasmine/jasminejasmine 的头像

    jasmine/jasmine

    15,824在 GitHub 上查看↗

    Jasmine is a JavaScript testing framework and test runner designed for behavior-driven development. It provides a comprehensive toolset for writing and executing descriptive test suites that verify code behavior in both web browsers and Node.js environments. The framework is distinguished by its integrated mocking library, which allows for dependency isolation through spies and stubs, as well as the ability to simulate time and timing functions to test asynchronous logic synchronously. It also includes a mechanism to enforce test uniqueness, preventing duplicate names for tests and suites. I

    JavaScript
    在 GitHub 上查看↗15,824
  • jestjs/jestjestjs 的头像

    jestjs/jest

    45,448在 GitHub 上查看↗

    Jest is a JavaScript testing framework designed for writing and running automated test suites to verify the correctness of JavaScript and TypeScript code. It functions as a comprehensive toolset that integrates a test runner, a mocking and spying library, a snapshot testing tool, and a code coverage tool. The framework distinguishes itself through snapshot testing, which records the serialized state of data structures to detect regressions in future executions. It also includes a mocking and spying library for simulating external dependencies and tracking function calls to isolate code during

    TypeScripteasyexpectationfacebook
    在 GitHub 上查看↗45,448
  • doctest/doctestdoctest 的头像

    doctest/doctest

    6,765在 GitHub 上查看↗

    doctest is a lightweight C++ unit testing framework and assertion library. It provides a single-header implementation that eliminates complex build dependencies, allowing developers to write and execute test cases directly within their source code. The framework is distinguished by its focus on compile-time performance and binary overhead. It uses conditional compilation guards to strip all testing logic and metadata from production binaries. Additionally, it features hierarchical subcases that re-execute parent setup code to isolate different execution paths within a single test case. Its c

    C++c-plus-pluscppcpp11
    在 GitHub 上查看↗6,765
查看 Pester 的所有 30 个替代方案→

常见问题解答

pester/pester 是做什么的?

Pester is a PowerShell testing framework and behavior-driven development tool used to write and run automated tests for scripts and modules. It defines and verifies software behavior through human-readable specifications to validate that code behaves as expected.

pester/pester 的主要功能有哪些?

pester/pester 的主要功能包括:Automated Test Execution, Behavior Driven Development Frameworks, Native Runtime Execution, Mock Implementations, Assertion Libraries, Interaction Verifiers, Function Behavior Replacement, Mocking and Spying Libraries。

pester/pester 有哪些开源替代品?

pester/pester 的开源替代品包括: thomhurst/tunit — TUnit is a comprehensive C# testing framework, mocking library, and fluent assertion tool. It utilizes source… jasmine/jasmine — Jasmine is a JavaScript testing framework and test runner designed for behavior-driven development. It provides a… jestjs/jest — Jest is a JavaScript testing framework designed for writing and running automated test suites to verify the… doctest/doctest — doctest is a lightweight C++ unit testing framework and assertion library. It provides a single-header implementation… quick/quick — Quick is a behavior-driven development framework and testing tool for Swift and Objective-C. It functions as both a… sinonjs/sinon — Sinon is a JavaScript test double library and mocking framework used to isolate code and verify behavior during unit…