Add test for department handling
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unity-js-scopes |
Fix Committed
|
Undecided
|
Marcus Tomlinson |
Bug Description
Description
-----------
The unity js scopes package have a minimal set of tests associated with a few of the features exposed in the JS scopes api. Those tests need to be expanded.
This bug aims at adding a new test for the Scopes Department feature.
Technical context
-----------------
Scopes are a fundamental piece of the UbuntuTouch user experience. Each scope offers user driven way to interact with one of more sources of either local or remote data displayed in a uniform fashion from the Ubuntu Dash.
https:/
The Unity Scopes API allows developers to create scopes in C++.
https:/
Unity JS scopes is a package that enables the creation of Javascript Scopes by offering bindings of the Unity Scopes API in Javascript.
In order to get started with the unity-js-scopes package, you can have a look at the README file found at the top of the package's sources:
http://
In the context of the API, Departments are ways to group results from a search in various top level groups
Examples of department usage can be found in one of the sample scope provided by the unity-js-scopes package:
http://
Existing tests for some parts of the scopes API can be found here:
http://
The tests can be run with:
make test
Each tests contains a server part that feeds the desired data to the scope and the js scope itself
Deliverable
-----------
Add a test for department handling that tests the same functionalities found in the simple.js scope above and validates that no issues occur.
Related branches
- Alexandre Abreu (community): Approve
- PS Jenkins bot (community): Approve (continuous-integration)
-
Diff: 270 lines (+207/-5)4 files modifiedtests/owm_scope/scope/CMakeLists.txt (+6/-0)
tests/owm_scope/scope/owm_scope-settings.ini (+4/-0)
tests/owm_scope/scope/owm_scope.js (+31/-3)
tests/owm_scope/tests/test-scope.py (+166/-2)
tags: | added: googlecodein |
description: | updated |
description: | updated |
Changed in unity-js-scopes: | |
assignee: | nobody → Marcus Tomlinson (marcustomlinson) |
status: | New → In Progress |
Changed in unity-js-scopes: | |
status: | In Progress → Fix Committed |