2017-05-21 16:43:38 +08:00

308 lines
11 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://wiki.status.im/contributing/testing-and-feedback/">
<link rel="shortcut icon" href="../../img/favicon.ico">
<title>Testing & Feedback - Status Wiki</title>
<link href="../../css/bootstrap-custom.min.css" rel="stylesheet">
<link href="../../css/font-awesome-4.5.0.css" rel="stylesheet">
<link href="../../css/base.css" rel="stylesheet">
<link rel="stylesheet" href="../../css/highlight.css">
<link rel="stylesheet" href="../../css/custom.css">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
<script src="../../js/jquery-1.10.2.min.js"></script>
<script src="../../js/bootstrap-3.0.3.min.js"></script>
<script src="../../js/highlight.pack.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-79146816-1', 'wiki.status.im');
ga('send', 'pageview');
</script>
</head>
<body>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<!-- Collapsed navigation -->
<div class="navbar-header">
<!-- Expander button -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../.."></a>
</div>
<!-- Expanded navigation -->
<div class="navbar-collapse collapse">
<!-- Main navigation -->
<ul class="nav navbar-nav">
<li >
<a href="../..">Welcome</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Getting Started <b class="caret"></b></a>
<ul class="dropdown-menu">
<li >
<a href="../../getting-started/mission-and-core-values/">Mission & Core Values</a>
</li>
<li >
<a href="../../getting-started/user-guide/">User Guide</a>
</li>
<li >
<a href="../../getting-started/faq/">FAQ</a>
</li>
<li >
<a href="../../getting-started/code-of-conduct/">Code of Conduct</a>
</li>
<li >
<a href="../development/introduction/">Developer Introduction</a>
</li>
<li >
<a href="../../community/how-to-grow-our-community/">Grow our Community</a>
</li>
</ul>
</li>
<li class="dropdown active">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Contributing <b class="caret"></b></a>
<ul class="dropdown-menu">
<li class="dropdown-submenu">
<a href="#">Developers</a>
<ul class="dropdown-menu">
<li >
<a href="../development/introduction/">Introduction</a>
</li>
<li >
<a href="../development/building-status/">Building Status</a>
</li>
<li >
<a href="../development/adding-dapps/">Adding DApps</a>
</li>
</ul>
</li>
<li >
<a href="../design-guidelines/">Design Guidelines</a>
</li>
<li class="active">
<a href="./">Testing & Feedback</a>
</li>
<li >
<a href="../documenting/">Documenting</a>
</li>
<li >
<a href="../outreach/">Outreach</a>
</li>
<li >
<a href="../translations/">Translations</a>
</li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Community <b class="caret"></b></a>
<ul class="dropdown-menu">
<li >
<a href="../../community/how-to-grow-our-community/">Grow our Community</a>
</li>
<li >
<a href="../../community/slack/">Slack</a>
</li>
<li >
<a href="../../community/newsletter/">Newsletter</a>
</li>
<li >
<a href="../../community/blog/">Blog</a>
</li>
<li >
<a href="../../community/tell-a-friend/">Tell a Friend</a>
</li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Proposals <b class="caret"></b></a>
<ul class="dropdown-menu">
<li >
<a href="../../proposals/commiteth/">Commiteth (WIP)</a>
</li>
<li >
<a href="../../proposals/contact-sharing/">Contact Sharing (WIP)</a>
</li>
<li >
<a href="../../proposals/chat-api/">Chat API (WIP)</a>
</li>
<li >
<a href="../../proposals/discover/">Discover (WIP)</a>
</li>
<li >
<a href="../../proposals/messaging/">Status Messaging (WIP)</a>
</li>
<li >
<a href="../../proposals/erc20-exchange/">Exchange (WIP)</a>
</li>
<li >
<a href="../../proposals/sticker-market/">Sticker Market (WIP)</a>
</li>
<li >
<a href="../../proposals/visual-programming/">Visual Programming (WIP)</a>
</li>
<li >
<a href="../../proposals/moments/">Moments (WIP)</a>
</li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">License <b class="caret"></b></a>
<ul class="dropdown-menu">
<li >
<a href="../../licenses/mpl2/">MPL2</a>
</li>
<li >
<a href="../../licenses/lgpl-v3.0-static/">LGPLv3-static</a>
</li>
</ul>
</li>
<li class="repo-link">
<a href="https://github.com/status-im/wiki.status.im/" target="_blank">
<i class="fa fa-github"></i>GitHub
</a>
</li>
<li>
<a href="https://hackathon.status.im" target="_blank">Hackathon</a>
</li>
<li>
<a href="https://docs.status.im" target="_blank">Docs</a>
</li>
<li class="search-link">
<a href="#" data-toggle="modal" data-target="#mkdocs_search_modal">
<i class="fa fa-search"></i>
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="col-md-3"><div class="bs-sidebar hidden-print affix well" role="complementary">
<ul class="nav bs-sidenav">
<li class="main active"><a href="#testing">Testing</a></li>
<li><a href="#for-developers">For Developers</a></li>
</ul>
</div></div>
<div class="col-md-9" role="main">
<div style="text-align: right;">
<a href="https://github.com/status-im/wiki.status.im/edit/master/docs/contributing/testing-and-feedback.md">Edit this page</a>
</div>
<h1 id="testing">Testing</h1>
<p>Shake your phone and submit bug report.
Please try to be as descripive as possible.</p>
<h2 id="for-developers">For Developers</h2>
<h3 id="ui-appium-tests">UI (Appium) tests</h3>
<p>To run the tests:</p>
<ol>
<li>Install appium: run <code>npm install -g appium</code></li>
<li>Start application on emulator or real device (<a href="https://wiki.status.im/contributing/development/building-status/#build-and-test">more details here</a>).</li>
</ol>
<p><strong>Important:</strong> use the <em>android-test</em> build (run <code>BUILD_IDS="android-test" lein repl</code>). Testing in iOS is not supported yet.
3. Start appium server in new tab: run <code>appium --session-override</code>
4. Run <code>lein test</code></p>
<p>Hints / Gotchas:</p>
<ul>
<li>Confirmed working using Appium version 1.6.1.</li>
<li>To find an element easily in the tests, use the <code>:accessibility-label</code> property in the respective Reagent component.</li>
<li>When querying an element by its inner text, be sure to use the whole text that the element is supposed to contain (it won't match just a part of the text).</li>
</ul>
<h3 id="unit-tests">Unit tests</h3>
<p>To run the unit tests execute:</p>
<p><code>lein doo node test once</code> <br />
or<br />
<code>lein doo node test</code></p>
<p>Second command will watch files inside <code>src</code> and <code>test</code> folders and rerun on changes.</p></div>
</div>
<footer class="col-md-12">
<hr>
<p>Documentation built with <a href="http://www.mkdocs.org/">MkDocs</a>.</p>
</footer>
<script>var base_url = '../..';</script>
<script data-main="../../mkdocs/js/search.js" src="../../mkdocs/js/require.js"></script>
<script src="../../js/base.js"></script><div class="modal" id="mkdocs_search_modal" tabindex="-1" role="dialog" aria-labelledby="Search Modal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="exampleModalLabel">Search</h4>
</div>
<div class="modal-body">
<p>
From here you can search these documents. Enter
your search terms below.
</p>
<form role="form">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search..." id="mkdocs-search-query">
</div>
</form>
<div id="mkdocs-search-results"></div>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
</body>
</html>