Saylua-Archive / SayluaLegacy

Browser Game In Development
saylua.com
GNU Affero General Public License v3.0
2 stars 0 forks source link

Testing / Linting + Travis #65

Closed NoiSek closed 7 years ago

NoiSek commented 7 years ago

Partially satisfies #12

Migration notes:

Pytest

Runs python tests from any file that matches test_*.py in the root tests folder.

Currently only capable of handling placeholders at the moment. Integrating tests into the Python half of our codebase is somewhat difficult given the need for appengine. Will solve in a future PR make a ticket for someone else to deal with.

Mocha

Example from saylua/static-source/lib/tests/test_BaseModel.js

import * as assert from "assert";
import Component from "inferno-component";

import BaseModel from "../Models/BaseModel.js";

describe('Models', function() {
  describe('BaseModel', function() {
    it('should initialize without error', (done) => {
      let model = new BaseModel();
      assert.ok(model);
      done();
    });
  });
});

Output:

Mediocre amount of additional info here.

coveralls commented 7 years ago

Coverage Status

Changes Unknown when pulling d58e4e43e88556bedd200d8b9d4327efa9a548f2 on mocha into on master.