<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Thu Feb 08 23:08:28 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>FOLIO Jira</title>
    <link>https://folio-org.atlassian.net</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>1001.0.0-SNAPSHOT</version>
        <build-number>100246</build-number>
        <build-date>07-02-2024</build-date>
    </build-info>

<item>
            <title>[UITEST-6] Document how to run module tests from ui-testing</title>
                <link>https://folio-org.atlassian.net/browse/UITEST-6</link>
                <project id="10041" key="UITEST">stripes-testing</project>
                    <description>&lt;p&gt;Should be linked to from the UI release procedure:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/folio-org/stripes-core/blob/master/doc/release-procedure.md#notes-on-testing&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/folio-org/stripes-core/blob/master/doc/release-procedure.md#notes-on-testing&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="36952">UITEST-6</key>
            <summary>Document how to run module tests from ui-testing</summary>
                <type id="10004" iconUrl="https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10300?size=medium">Sub-task</type>
                            <parent id="36953">UITEST-2</parent>
                                    <priority id="10002" iconUrl="https://dev.folio.org/assets/jira-priority/jira-p3.svg">P3</priority>
                        <status id="6" iconUrl="https://folio-org.atlassian.net/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10003">Done</resolution>
                                                        <assignee accountid="5bffed5e2434bf3a1a91d37a">Niels Erik Nielsen</assignee>
                                                                <reporter accountid="5bffed5e2434bf3a1a91d37a">Niels Erik Nielsen</reporter>
                                    <labels>
                            <label>sprint21</label>
                    </labels>
                <created>Fri, 25 Aug 2017 22:04:59 +0000</created>
                <updated>Fri, 1 Sep 2017 06:33:42 +0000</updated>
                            <resolved>Fri, 1 Sep 2017 06:33:42 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                    <timespent seconds="7200">2 hours</timespent>
                                <comments>
                                                            <comment id="83262" author="5bffed5e2434bf3a1a91d37a" created="Mon, 28 Aug 2017 10:59:12 +0000"  >&lt;p&gt;Have added help page to &lt;tt&gt;test-module.js&lt;/tt&gt;:&lt;/p&gt;
</comment>
                                                            <comment id="83263" author="5bffed5e2434bf3a1a91d37a" created="Mon, 28 Aug 2017 12:08:33 +0000"  >&lt;p&gt;To run a Stripes module&apos;s Nightmare tests:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
git clone https:&lt;span class=&quot;code-comment&quot;&gt;//github.com/folio-org/ui-testing.git
&lt;/span&gt;cd ui-testing
yarn install
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and then, to test the &lt;tt&gt;users&lt;/tt&gt; module: &lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
yarn test-module -- -o --run=users 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Options for running individual tests from a module are explained in &lt;tt&gt;test-module&lt;/tt&gt;&apos;s help page: &lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
Usage:

  yarn test-module -- -o --run=module[:script[,script]][/module[:script[,script]]]

Examples:

  yarn test-module -- -o --run=requests                     Runs main tests (test.js) &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; UI module &lt;span class=&quot;code-quote&quot;&gt;&apos;requests&apos;&lt;/span&gt;
  yarn test-module -- -o --run=users/items                  Runs tests (test.js) &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; multiple UI modules
  yarn test-module -- -o --run=users:new_user,patron_group  Runs specific tests &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;code-quote&quot;&gt;&apos;users&apos;&lt;/span&gt;

Info:

  The script will run a UI module&apos;s Nightmare tests, provided that the module has tests defined and 

   a) is included as a dependency in /ui-testing/&lt;span class=&quot;code-keyword&quot;&gt;package&lt;/span&gt;.json 
   b) runs on the FOLIO web application targeted by &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; test (see URL settings in /ui-testing/folio-ui-config.js)

  The npm version of the test suite should match the version of the live module being tested.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;These commands would test a module in the default FOLIO application with default test settings (see URL and settings in &lt;tt&gt;ui-testing/folio-ui.config.js&lt;/tt&gt;). The current README.md in &lt;tt&gt;ui-testing&lt;/tt&gt; explains how to change the test URL and other test settings. &lt;/p&gt;</comment>
                                                            <comment id="83264" author="5bffed5e2434bf3a1a91d37a" created="Tue, 29 Aug 2017 10:44:43 +0000"  >&lt;p&gt;Addition: &lt;/p&gt;

&lt;p&gt;When running a UI module&apos;s test suite there are three potential sources for the actual version of the test being pulled in:&lt;/p&gt;

&lt;p&gt;FOLIO&apos;s  release repository:   npm-folio&lt;br/&gt;
FOLIO&apos;s continuous integration repository:  npm-folioci&lt;br/&gt;
A local checkout of the module, brought into ui-testing by yarn link or otherwise&lt;/p&gt;

&lt;p&gt;Pulling the tests from the release repository makes sense if the purpose is to test a candidate for a stable Stripes platform release, since it will pull in a version of the test matching a released version of the UI module.&lt;/p&gt;

&lt;p&gt;Otherwise, the intention is probably to test the very latest version of the UI module(s) and for that, &lt;tt&gt;uI-testing&lt;/tt&gt; should be installed from npm-folioci.&lt;/p&gt;

&lt;p&gt;In order to develop the test itself (not just run it against a developing UI module), the test programmer would probably yarn link a local checkout of the UI module into &lt;tt&gt;ui-testing&lt;/tt&gt; &lt;/p&gt;


</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="36951">UITEST-5</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummarycf">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10019" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|hzxydz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10020" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10025" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>[CHART] Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>