All Projects → worksolutions → bitrix-module-bunit

worksolutions / bitrix-module-bunit

Licence: other
BUnit - фреймворк модульного тестрования для CMS Bitrix

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to bitrix-module-bunit

bUnit
bUnit is a testing library for Blazor components that make tests look, feel, and runs like regular unit tests. bUnit makes it easy to render and control a component under test’s life-cycle, pass parameter and inject services into it, trigger event handlers, and verify the rendered markup from the component using a built-in semantic HTML comparer.
Stars: ✭ 857 (+4185%)
Mutual labels:  unit-testing, xunit, bunit
FakeItEasy.AutoFakeIt
A very simple, yet flexible, "AutoFaker" for FakeItEasy to easily auto generate classes with faked dependencies.
Stars: ✭ 15 (-25%)
Mutual labels:  unit-testing, xunit
MinimalApi
ASP.NET Core 7.0 - Minimal API Example - Todo API implementation using ASP.NET Core Minimal API, Entity Framework Core, Token authentication, Versioning, Unit Testing, Integration Testing and Open API.
Stars: ✭ 156 (+680%)
Mutual labels:  unit-testing, xunit
Cake
🍰 Cake (C# Make) is a cross platform build automation system.
Stars: ✭ 3,154 (+15670%)
Mutual labels:  unit-testing, xunit
Xunit
xUnit.net is a free, open source, community-focused unit testing tool for the .NET Framework.
Stars: ✭ 3,120 (+15500%)
Mutual labels:  unit-testing, xunit
Fluentassertions
A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit tests. Targets .NET Framework 4.7, .NET Core 2.1 and 3.0, as well as .NET Standard 2.0 and 2.1. Supports the unit test frameworks MSTest2, NUnit3, XUnit2, MSpec, and NSpec3.
Stars: ✭ 2,449 (+12145%)
Mutual labels:  unit-testing, xunit
chai-exclude
Exclude keys to compare from a deep equal operation with chai expect or assert.
Stars: ✭ 33 (+65%)
Mutual labels:  unit-testing
MsCoreOne
MsCoreOne is a simple Ecommerce with using many technologies such as .NET 5, Entity Framework Core 5, React 16.13 with modern Clean Architecture, Domain-Driven Design, CQRS, SOLID, Identity Server 4, Blazor. It will focus on resolving the problems always see in the process to develop projects.
Stars: ✭ 77 (+285%)
Mutual labels:  xunit
dumbmutate
Simple mutation-testing
Stars: ✭ 32 (+60%)
Mutual labels:  unit-testing
jasmine-styleguide
Suggested best practices when writing Jasmine unit tests.
Stars: ✭ 65 (+225%)
Mutual labels:  unit-testing
sketch-test-inspector
Helper utils and plugin for running unit tests on sketch plugins
Stars: ✭ 18 (-10%)
Mutual labels:  unit-testing
morq
BDD/TDD assertion interface
Stars: ✭ 80 (+300%)
Mutual labels:  unit-testing
pythonista-chromeless
Serverless selenium which dynamically execute any given code.
Stars: ✭ 31 (+55%)
Mutual labels:  unit-testing
helloworld
Boilerplate code for basic architecture of an android application following MVVM pattern using hilt, RxJava2.
Stars: ✭ 26 (+30%)
Mutual labels:  unit-testing
Hexagonal-architecture-ASP.NET-Core
App generator API solution template which is built on Hexagnonal Architecture with all essential feature using .NET Core
Stars: ✭ 57 (+185%)
Mutual labels:  unit-testing
toolbox
dein ToolBox - C# .Net Library with utilities like: command line, files, log, platform, shell, system, transform and validation [ Win+Mac+Linux ]
Stars: ✭ 46 (+130%)
Mutual labels:  xunit
UTBotCpp
Tool that generates unit test by C/C++ source code, trying to reach all branches and maximize code coverage
Stars: ✭ 59 (+195%)
Mutual labels:  unit-testing
Restaurants
Restaurants sample app built with the new architecture components (LiveData, Room, ViewModel) and Dagger 2
Stars: ✭ 47 (+135%)
Mutual labels:  unit-testing
FRUITPy
Python interface for the FRUIT Fortran unit testing framework
Stars: ✭ 39 (+95%)
Mutual labels:  unit-testing
Tablier
A micro-framework for Table Driven Tests.
Stars: ✭ 33 (+65%)
Mutual labels:  unit-testing

Фреймворк модульного тестирования bunit

Автоматизирует модульное тестирования проекта. Прост в установке (Сomposer, Marketplace) и использовании.

  1. Тест
<?php

class IblockAmountTestCase extends \WS\BUnit\Cases\BaseCase {
    /**
     * @test
     */
    public function iblocksNotEmpty() {
        CModule::IncludeModule("iblock");
        $dbResult = CIBlock::getList(array(), array());
        $this->getAssert()->asTrue($dbResult->AffectedRowsCount() > 0, "Число инфоблоков должно быть больше нуля");
    }

    /**
     * @test
     */
    public function hasNewsIblock() {
        $result = CIBlock::getList(array(), array("CODE" => "news"))->fetch();
        $this->getAssert()->asTrue((bool) $result, "Отсутствует инфоблок новостей");
    }
}
  1. Результат

Запуск

1. Устанавливаем и настраиваем модуль

2. Пишем тесты

3. Запускаем провеку

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].