Code Monkey home page Code Monkey logo

ember-dev's People

Contributors

bantic avatar bcardarella avatar brzpegasus avatar duggiefresh avatar ebryn avatar fivetanley avatar gabesmed avatar joliss avatar locks avatar lukemelia avatar machty avatar mixonic avatar mmun avatar pangratz avatar peterdavehello avatar rwjblue avatar slindberg avatar stefanpenner avatar teddyzeenny avatar tehcurtis avatar thomasboyt avatar tomdale avatar trek avatar tricknotes avatar twokul avatar wagenet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ember-dev's Issues

Travis Error with `--points-at`.

The last couple of Travis builds have errored due to issues with git tag --points-at not working properly.

My guess is that this is related to their recent updates, but I will investigate further.

uninitialized constant ::Ember::Source

I've just tried creating a project that uses ember-dev and when I start the rack server I get this error message:

NameError: uninitialized constant Ember::Source

It is referring to this line in server.rb:

 [200, {'Content-Type' => 'text/javascript'}, [File.read(::Ember::Source.bundled_path_for("ember.js"))]]

I'm not sure where the Ember module is supposed to be coming from, I've tried including the ember-source in my gem file:

gem 'ember-source', path: '../ember.js'

But still no dice.

Where is the Ember module supposed to be coming from?

How to use it?

So the README says it not ready for public use, but to get in touch if you want to help out. I would be happy to write a blog post, README, or both. I've been working on a little ember library (an extension to ember table) and would love to learn the right way to package it up. It seems like this is it? So anyways, consider this me volunteering :)

Need `expectWarn` test helper

Similar to expectDeprecation, a handler for checking that the right Ember.warn happened during a test will lead to stronger tests and therefore an even stronger codebase.

Update release tooling to handle `beta` branches.

We need to update our release rake tasks to handle the various actions needed for branching from master to beta.

The tasks to be performed are:

  • Merge master into beta (git checkout beta && git merge master)
  • Update the VERSION file.
  • Run rake ember:prepare (runs :changelog and :bump_version tasks).
  • Run rake ember:deploy (runs :commit, :tag, and :push tasks).

@wagenet - Could you review this list of tasks to ensure that it is complete? What am I missing?

How can I use expectDeprecation in addon tests?

I'm working on an addon that will be introducing some deprecations. I would like to test that a deprecation warning was raised. @mixonic suggested to use expectDeprecation but I haven't been able to get this library injected into my addon's test environment.

I tried installing this library as an addon and added the following to my test-helper.js

import Ember from 'ember';
import setupQUnit from 'ember-dev/test-helper/setup-qunit';
import EmberDevTestHelperAssert from 'ember-dev/test-helper/index';

var testHelpers = new EmberDevTestHelperAssert(Ember, false);
setupQUnit(testHelpers);

I expect to get expectDeprecation in my tests, but it doesn't look like it's available.

How do I get this working?

Make helpers usable in apps/addons

Related: #158

These assertions are valuable for addon development to facilitate changing APIs, but are also useful for coordinating changes in apps with large teams. Ideally, these helpers would be included in a build tree as part of a cli addon, making them directly importable in tests, e.g.

// tests/integration/post-list.js
import hbs from 'htmlbars-inline-precompile';
import { describeComponent, it } from 'ember-mocha';
import { expectDeprecation } from 'ember-dev-mocha';

describeComponent('post-list', 'PostListComponent', { integration: true }, function() {
  it("should trigger a deprecation when specifying the `sortBy` attr", function() {
    expectDeprecation(() => {
      this.render(hbs`
        {{#post-list sortBy="nope"}}
      `);
    }, /The `sortBy` attribute is deprecated, pass in a sorted list instead./);
  });
});

Questions:

  • Should this project be the target addon for all test frameworks, or should it act like ember-test-helpers and be designed for framework-specific addons to consume?
  • If the later, what should the external assertion API look like? Is a single boolean assertion adequate, or should it support multiple assertion types?
  • Should this project be de-addon-ified (supplying a /lib dir like ember-test-helpers)
  • Should separate addons be created (e.g. ember-dev-qunit/ember-dev-mocha), or should support be added directly to ember-mocha and ember-qunit?
  • If the later, is it safe to use chai style expect(...).to.be assertions?

cc @mixonic @mmun @rwjblue @dgeb

Running tests in browser environment

Ember repositories have always included a test/index.html to run the test suite.

With the introduction of ember-dev, this test environment has been removed in both repositories ( ember.js and data ). Right now, i am missing:

  • debugging with web inspectors and other tools
  • being able to run an independent test

IMO, this feature should be included.

Generate builds for PR's

Just wanted to gauge if anyone is interested in this. I can probably put it together pretty easily, and that would allow us to access the assets for JSFiddle/JSBin demos within the comments of various pull requests.

The structure could look like:

/pr/<project name>/<pr number>/<files>

We would be able to use enviroment variables from Travis to know the various pieces (see here for details).

I'm more than happy to do this if you think it would be beneficial.

Modernizing this addon?

This addon has some good stuff in it. Being able to know that your application hit no deprecations, warnings, or asserts during testing is actually pretty cool. But just poking around it doesn't seem like a lot of people are using this. Maybe because they don't know about it or maybe there is a simpler way to do that?

This library could use a little modernizing ... e.g. it doesn't support QUnit 2. I'd be happy to investigate this if others would find value in it. Then again, maybe ember-test-helpers and ember-qunit would be a better place for those asserts. Any thoughts?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.