From e791d011fe16c8b316fe06c57e4036f24cdc95bb Mon Sep 17 00:00:00 2001 From: Donald Booth Date: Mon, 29 Jul 2019 10:45:42 -0500 Subject: [PATCH 1/3] Adding testfile to repo. --- docs/mftf-tests.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 docs/mftf-tests.md diff --git a/docs/mftf-tests.md b/docs/mftf-tests.md new file mode 100644 index 000000000..6eee50b0d --- /dev/null +++ b/docs/mftf-tests.md @@ -0,0 +1,27 @@ +--- +layout: full-width +title: MFTF Tests +--- + +The Magento Functional Testing Framework runs tests on every Module within Magento. These files are stored within each Module folder in the Magento repo. +This page lists all those tests so that developers have a good sense of what is covered. + +{% assign mftf = site.data.mftf | group_by: "module" %} +{% assign sorted = mftf | sort: "name" %} + +{% for module in sorted %} + +### {{ module.name }} Module + +{% assign tests = module.items | sort: "filename" %} +{% for item in tests %} + + **{{ item.testname }}** + +- File name: [{{ item.filename }}.xml]({{ item.link }}) +- Story: {{ item.stories }} + +{{ item.description}} + +{% endfor %} +{% endfor %} \ No newline at end of file From 7d925afc490ee1f10710309d6748896ebd77c475 Mon Sep 17 00:00:00 2001 From: Donald Booth Date: Mon, 29 Jul 2019 16:13:54 -0500 Subject: [PATCH 2/3] new layout. handle multiple tests. --- docs/mftf-tests.md | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/docs/mftf-tests.md b/docs/mftf-tests.md index 6eee50b0d..fd6283c30 100644 --- a/docs/mftf-tests.md +++ b/docs/mftf-tests.md @@ -4,24 +4,20 @@ title: MFTF Tests --- The Magento Functional Testing Framework runs tests on every Module within Magento. These files are stored within each Module folder in the Magento repo. -This page lists all those tests so that developers have a good sense of what is covered. +This page lists all those tests so that developers can have a good sense of what is covered. -{% assign mftf = site.data.mftf | group_by: "module" %} -{% assign sorted = mftf | sort: "name" %} +{% assign mftf = site.data.mftf | group_by: "module" | sort: "name" %} -{% for module in sorted %} +{% for item in mftf %} -### {{ module.name }} Module +### {{ item.name }} +{% for file in item.items %} +#### [{{ file.filename }}]({{file.repo}}) -{% assign tests = module.items | sort: "filename" %} -{% for item in tests %} - - **{{ item.testname }}** - -- File name: [{{ item.filename }}.xml]({{ item.link }}) -- Story: {{ item.stories }} - -{{ item.description}} +{% for test in file.tests %} +{{test.testname}} + : {{test.description}} {% endfor %} -{% endfor %} \ No newline at end of file +{% endfor %} +{% endfor %} From af5fe4f3daf7f31f4cbe502cb04b7e95573e3295 Mon Sep 17 00:00:00 2001 From: Donald Booth Date: Wed, 31 Jul 2019 16:07:26 -0500 Subject: [PATCH 3/3] adding test reference file. --- docs/mftf-tests.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/docs/mftf-tests.md b/docs/mftf-tests.md index fd6283c30..718806aa5 100644 --- a/docs/mftf-tests.md +++ b/docs/mftf-tests.md @@ -2,7 +2,17 @@ layout: full-width title: MFTF Tests --- - + The Magento Functional Testing Framework runs tests on every Module within Magento. These files are stored within each Module folder in the Magento repo. This page lists all those tests so that developers can have a good sense of what is covered. @@ -10,14 +20,15 @@ This page lists all those tests so that developers can have a good sense of what {% for item in mftf %} -### {{ item.name }} +### {{ item.name }} {% for file in item.items %} #### [{{ file.filename }}]({{file.repo}}) +{: .mftf-test-link} {% for test in file.tests %} {{test.testname}} : {{test.description}} - +{: .mftf-dl} {% endfor %} {% endfor %} {% endfor %}