Skip to content

Commit cc85031

Browse files
committed
Merge branch 'release/24.12'
2 parents 4f28d25 + 8b12403 commit cc85031

108 files changed

Lines changed: 4604 additions & 1137 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: '📖 Документация'
2+
description: 'Предложения по доработке документации'
3+
title: '[Doc]: '
4+
labels: ['documentation']
5+
body:
6+
- type: textarea
7+
id: description
8+
attributes:
9+
label: '📖 Описание предложения'
10+
description: 'Общее описание необходимых доработок по документации'
11+
validations:
12+
required: true
13+
14+
- type: input
15+
id: page
16+
attributes:
17+
label: Страница/раздел
18+
description: Ссылка на страницу или наименование раздела
19+
20+
- type: textarea
21+
id: problems
22+
attributes:
23+
label: 'Неучтенные кейсы документации'
24+
description: |
25+
* Нераскрытые в документации вопросы (можно ссылками на обсуждение).
26+
* Примеры неправильного использования
27+
* Прочие, желательно реальные, примеры проблем связанных с документацией
28+
29+
- type: textarea
30+
id: tasks
31+
attributes:
32+
label: Перечень необходимых доработок
33+
value: |
34+
- [ ] Описать то-то
35+
- [ ] Исправить опечатку там то
36+
- [ ] Дополнить примерами такой то раздел

.github/workflows/build-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
steps:
3030
- name: Установка 1С:Предприятие 8.3.21.1895
31-
uses: alkoleft/onec-setup-build-env-action@develop
31+
uses: 1CDevFlow/onec-setup-action@main
3232
with:
3333
type: onec
3434
onec_version: 8.3.21.1895

.github/workflows/sonar-qube-analysis.yml

Lines changed: 5 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -6,64 +6,9 @@ on:
66

77
jobs:
88
SonarQualityGate:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- name: Извлечение исходников PR
12-
if: github.event_name == 'pull_request_target' || github.event_name == 'pull_request'
13-
uses: actions/checkout@v4
14-
with:
15-
ref: refs/pull/${{ github.event.number }}/merge # Для поддержки pull_request и pull_request_target
16-
fetch-depth: 0 # Получение полной истории (все тэги и ветки)
17-
18-
- name: Извлечение исходников ветки ${{ github.ref_name }}
19-
if: github.event_name == 'push'
20-
uses: actions/checkout@v4
21-
with:
22-
fetch-depth: 0 # Получение полной истории (все тэги и ветки)
23-
24-
- name: Извлечение версии проекта
25-
uses: ./.github/actions/extract-version
26-
with:
27-
path: ./exts/yaxunit/src
28-
id: extract_version
29-
30-
# Анализ проекта в SonarQube (ветка)
31-
- name: Анализ в SonarQube (${{ github.ref_name }})
32-
if: github.event_name == 'push'
33-
uses: sonarsource/sonarqube-scan-action@v2.3.0
34-
env:
35-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
36-
LC_ALL: "ru_RU.UTF-8"
37-
with:
38-
args: >
39-
-Dsonar.host.url=https://sonar.openbsl.ru
40-
-Dsonar.branch.name=${{ github.ref_name }}
41-
-Dsonar.projectVersion=${{ steps.extract_version.outputs.version }}
42-
-Dsonar.qualitygate.wait=true
43-
-Dsonar.qualitygate.timeout=300
44-
45-
# Анализ проекта в SonarQube (PR)
46-
# https://docs.sonarqube.org/latest/analysis/pull-request/
47-
- name: Анализ в SonarQube (pull-request ${{ github.event.number }})
48-
if: github.event_name == 'pull_request_target' || github.event_name == 'pull_request'
49-
uses: sonarsource/sonarqube-scan-action@v2.3.0
50-
env:
51-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
52-
with:
53-
args: >
54-
-Dsonar.host.url=https://sonar.openbsl.ru
55-
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
56-
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
57-
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}
58-
-Dsonar.scm.revision=${{ github.event.pull_request.head.sha }}
59-
-Dsonar.qualitygate.wait=true
60-
-Dsonar.qualitygate.timeout=300
61-
62-
- name: Публикация результата проверки PR
63-
if: github.event_name != 'push' && (success()||failure())
64-
uses: 1CDevFlow/sonar-review-action@main
65-
with:
66-
sonar_branch_plugin: true
67-
env:
68-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9+
uses: "1CDevFlow/workflows/.github/workflows/sonar-analysis-with-openbsl.yml@main"
10+
with:
11+
root-project-path: ./exts/yaxunit/src
12+
secrets:
13+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
6914

.github/workflows/step-build-artifacts-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
steps:
3131

3232
- name: Установка 1С:Предприятие
33-
uses: alkoleft/onec-setup-build-env-action@develop
33+
uses: 1CDevFlow/onec-setup-action@main
3434
with:
3535
type: onec
3636
onec_version: ${{ inputs.v8_version }}

.github/workflows/step-export-xml.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
id: extract_smoke_version
5959

6060
- name: Установка 1C:EDT
61-
uses: alkoleft/onec-setup-build-env-action@develop
61+
uses: 1CDevFlow/onec-setup-action@main
6262
with:
6363
type: edt
6464
edt_version: ${{ inputs.edt_version }}

.github/workflows/step-run-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
Write-Output "substring=$('${{ inputs.locale }}'.Substring(0, 2))" >> $Env:GITHUB_OUTPUT
6363
6464
- name: Установка 1С:Предприятие
65-
uses: alkoleft/onec-setup-build-env-action@develop
65+
uses: 1CDevFlow/onec-setup-action@main
6666
with:
6767
type: onec
6868
onec_version: ${{ inputs.v8_version }}
@@ -79,19 +79,19 @@ jobs:
7979
timeout-minutes: 5
8080

8181
- name: Загрузка расширения c тестами
82-
uses: alkoleft/yaxunit/.github/actions/load-extension@develop
82+
uses: 1CDevFlow/workflows/actions/load-extension@main
8383
with:
8484
name: tests
8585
path: binary/tests.cfe
8686

8787
- name: Загрузка расширения c дымовыми тестами
88-
uses: alkoleft/yaxunit/.github/actions/load-extension@develop
88+
uses: 1CDevFlow/workflows/actions/load-extension@main
8989
with:
9090
name: Smoke
9191
path: binary/smoke.cfe
9292

9393
- name: Загрузка расширения YAxUnit
94-
uses: alkoleft/yaxunit/.github/actions/load-extension@develop
94+
uses: 1CDevFlow/workflows/actions/load-extension@main
9595
with:
9696
name: YAXUNIT
9797
path: binary/yaxunit.cfe

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
# ![Logo](documentation/static/img/logo.png) YAxUnit. Расширение для запуска тестов
1+
# ![Logo](documentation/static/img/logo.svg) YAxUnit. Расширение для запуска тестов
22

33
----
44

5-
[![Actions Status](https://github.com/bia-technologies/yaxunit/actions/workflows/sq.yml/badge.svg)](https://github.com/bia-technologies/yaxunit/actions)
6-
[![Download](https://img.shields.io/github/release/bia-technologies/yaxunit.svg?label=download&style=flat)](https://github.com/bia-technologies/yaxunit/releases/latest)
7-
[![GitHub Releases](https://img.shields.io/github/downloads/bia-technologies/yaxunit/latest/total?style=flat-square)](https://github.com/bia-technologies/yaxunit/releases)
5+
[![Проверка Sonar](https://github.com/bia-technologies/yaxunit/actions/workflows/sonar-qube-analysis.yml/badge.svg)](https://github.com/bia-technologies/yaxunit/actions/workflows/sonar-qube-analysis.yml)
86
[![Quality Gate](https://sonar.openbsl.ru/api/project_badges/measure?project=yaxunit&metric=alert_status)](https://sonar.openbsl.ru/dashboard?id=yaxunit)
9-
[![Maintainability](https://sonar.openbsl.ru/api/project_badges/measure?project=yaxunit&metric=sqale_rating)](https://sonar.openbsl.ru/dashboard?id=yaxunit)
10-
11-
[![Build and test](https://github.com/bia-technologies/yaxunit/actions/workflows/main-build.yml/badge.svg)](https://github.com/bia-technologies/yaxunit/actions/workflows/main-build.yml)
12-
[![Build ocumentation](https://github.com/bia-technologies/yaxunit/actions/workflows/deploy-documentation.yml/badge.svg)](https://github.com/bia-technologies/yaxunit/actions/workflows/deploy-documentation.yml)
7+
[![Maintainability](https://sonar.openbsl.ru/api/project_badges/measure?project=yaxunit&metric=sqale_rating)](https://sonar.openbsl.ru/dashboard?id=yaxunit)
8+
[![Тестирование](https://github.com/bia-technologies/yaxunit/actions/workflows/perform-tests.yml/badge.svg)](https://github.com/bia-technologies/yaxunit/actions/workflows/perform-tests.yml)
9+
[![Сборка документации](https://github.com/bia-technologies/yaxunit/actions/workflows/deploy-documentation.yml/badge.svg)](https://github.com/bia-technologies/yaxunit/actions/workflows/deploy-documentation.yml)
10+
[![Download](https://img.shields.io/github/release/bia-technologies/yaxunit.svg?label=download&style=flat)](https://github.com/bia-technologies/yaxunit/releases/latest)
11+
[![GitHub Releases](https://img.shields.io/github/downloads/bia-technologies/yaxunit/latest/total?style=flat-square)](https://github.com/bia-technologies/yaxunit/releases)
1312

1413
Обсудить в [Telegram чате](https://t.me/BIAOpenTools/12)
1514

documentation/docs/features/mocking/mocking.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,41 @@ sequenceDiagram
147147
* `ЮТест.Данные().ADORecordSet` - принимает информацию о колонках
148148
* `Добавить()` - добавляет новую строку значений
149149

150+
### `СообщениеСервисаИнтеграции`
151+
152+
При тестировании интеграций с помощью 1С:Шина есть потребность тестировать сбор/разбор сообщений сервисов интеграции.
153+
154+
У `СообщениеСервисаИнтеграции` отсутствует конструктор, поэтому был добавлен [`ЮТест.Данные().СообщениеСервисаИнтеграции`](/api/ЮТТестовыеДанные#IntegrationServiceMessage) реализующий интерфейс `СообщениеСервисаИнтеграции`
155+
156+
Возможности:
157+
158+
* Реализует методы `СообщениеСервисаИнтеграции`
159+
* Свойства
160+
* `ДатаОтправки`
161+
* `ДатаУстаревания`
162+
* `Идентификатор`
163+
* `ИдентификаторСообщенияЗапроса`
164+
* `КодОтправителя`
165+
* `КодПолучателя`
166+
* `Параметры`
167+
* `РазмерТела`
168+
* Методы
169+
* `ПолучитьТелоКакПоток()`
170+
* Имеет методы настройки, реализованные в виде [текучих выражений](/docs/getting-started/fluent-api.md)
171+
* Установка тела
172+
* `УстановитьТелоКакДвоичныеДанные()`
173+
* `УстановитьТелоКакСтроку()`
174+
* `УстановитьТелоКакСтрокуJSON()`
175+
* Методы установки свойств
176+
* `ДобавитьПараметр()`
177+
* `ДатаОтправки()`
178+
* `ДатаУстаревания()`
179+
* `Идентификатор()`
180+
* `ИдентификаторСообщенияЗапроса()`
181+
* `КодОтправителя()`
182+
* `КодПолучателя()`
183+
* `РазмерТела()`
184+
150185
### Создание своих моков
151186

152187
При возникновении подобных ситуаций, когда для тестов вам нужны объекты с какой-то логикой/методами, по аналогии с примерами выше вы без проблем сможете создать нужные вам моки.

0 commit comments

Comments
 (0)