• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

theorchard / lemon-js / 49
99%
master: 98%

Build:
Build:
LAST BUILD BRANCH: mo-14-nov-add-automated-tests
DEFAULT BRANCH: master
Ran 17 Nov 2014 07:27PM UTC
Jobs 1
Files 5
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
49

push

travis-ci

xethorn
Karma Test Library for Lemon Views
==================================

Writting tests for views can be a bit lengthy and can require a lot of
manual work. This library automates the creation of the view, and bundle
all the automated tests (which are part of the yml files.)

Example of library usage:

    ```js
    goog.require('lemon.tests');

    goog.require('app.ViewName');
    goog.require('app.ViewName.yml');

    describe('ViewName', function() {
        var tests = lemon.tests.init(app.ViewName, app.ViewName.yml);

        tests.describe('Test 1', null, function(view) {
            // test.
        });
    });
    ```

If you have 5 tests in the yml file, you will see the following
scenario:

- Run all the 5 tests of the yml file.
- Run the test "Test 1" within the successful test of the yml file.

If 4 tests out of 5 are successful, it means that 9 tests will have ran. Those
tests answer the questions:

* Can this view be rendered under all valid conditions?
* Can all the states on this view work with the javascript?

182 of 182 relevant lines covered (100.0%)

9.1 hits per line

Jobs
ID Job ID Ran Files Coverage
1 49.1 17 Nov 2014 07:27PM UTC 0
100.0
Travis Job 49.1
Source Files on build 49
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #49
  • 74d975d5 on github
  • Prev Build on mo-14-nov-add-automated-tests (#44)
  • Next Build on mo-14-nov-add-automated-tests (#61)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc