-
Notifications
You must be signed in to change notification settings - Fork 31
Исправление тестов (манифесты, доступность пакетов) #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,6 +61,7 @@ | |
| ЗаписатьМанифест(Запись, СоздатьТестовыйМанифест()); | ||
|
|
||
| Результат = СтрЗаменить(Запись.Закрыть(), Символы.ВК+Символы.ПС, Символы.ПС); | ||
| Результат = СтрЗаменить(Результат, " />", "/>"); | ||
|
|
||
| Эталон = | ||
| "<?xml version=""1.0"" encoding=""utf-8""?> | ||
|
|
@@ -71,17 +72,17 @@ | |
| | <engine-version>1.0</engine-version> | ||
| | <description>Это пакет для тестирования</description> | ||
| | <author-email>mail@server.com</author-email> | ||
| | <depends-on name=""asserts"" /> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Это изменение будет падать на одной OS и работать на другой. Linux и Windows формируют разные xml
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Тогда, пожалуй, следует 2 теста держать и пропускать один в зависимости от среды, верно?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. В каком-то из соседних проектов вопрос решили через проверку по шаблону и \s* после кавычки.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. для инфо: нашел шаг в 1bdd
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. сделал очень прямолинейно, но должно работать корректно |
||
| | <depends-on name=""cmdline"" version="">=2.1"" version-max=""<3.0"" /> | ||
| | <depends-on name=""asserts""/> | ||
| | <depends-on name=""cmdline"" version="">=2.1"" version-max=""<3.0""/> | ||
| | <executable>src/app1.os</executable> | ||
| | <executable>src/app2.os</executable> | ||
| | <include-content>src</include-content> | ||
| | <include-content>tests</include-content> | ||
| | <explicit-modules> | ||
| | <module name=""Модуль1"" src=""src/m1.os"" /> | ||
| | <module name=""Модуль2"" src=""src/m2.os"" /> | ||
| | <class name=""Класс1"" src=""src/class1.os"" /> | ||
| | <class name=""Класс2"" src=""src/class2.os"" /> | ||
| | <module name=""Модуль1"" src=""src/m1.os""/> | ||
| | <module name=""Модуль2"" src=""src/m2.os""/> | ||
| | <class name=""Класс1"" src=""src/class1.os""/> | ||
| | <class name=""Класс2"" src=""src/class2.os""/> | ||
| | </explicit-modules> | ||
| |</opm-metadata>"; | ||
|
|
||
|
|
@@ -98,6 +99,7 @@ | |
| Сериализатор.ЗаписатьМетаданныеВXML(Запись, СоздатьТестовыйМанифест()); | ||
|
|
||
| Результат = СтрЗаменить(Запись.Закрыть(), Символы.ВК+Символы.ПС, Символы.ПС); | ||
| Результат = СтрЗаменить(Результат, " />", "/>"); | ||
|
|
||
| Эталон = | ||
| "<?xml version=""1.0"" encoding=""utf-8""?> | ||
|
|
@@ -108,8 +110,8 @@ | |
| | <engine-version>1.0</engine-version> | ||
| | <description>Это пакет для тестирования</description> | ||
| | <author-email>mail@server.com</author-email> | ||
| | <depends-on name=""asserts"" /> | ||
| | <depends-on name=""cmdline"" version="">=2.1"" version-max=""<3.0"" /> | ||
| | <depends-on name=""asserts""/> | ||
| | <depends-on name=""cmdline"" version="">=2.1"" version-max=""<3.0""/> | ||
| | <executable>src/app1.os</executable> | ||
| | <executable>src/app2.os</executable> | ||
| |</opm-metadata>"; | ||
|
|
@@ -118,7 +120,6 @@ | |
|
|
||
| КонецПроцедуры | ||
|
|
||
|
|
||
| Процедура ТестДолжен_ПрочитатьМанифестИзXML() Экспорт | ||
|
|
||
| Манифест = СоздатьТестовыйМанифест(); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Зачем это?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@EvilBeaver, см. выше комментарий @nixel2007