Git Product home page Git Product logo

jasmine-species's People

Contributors

codelahoma avatar rudylattae 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jasmine-species's Issues

Add support for l10n

Hy Rudy,

Since the GWT notation is commonly used as a partial documentation in agile software, I believe that supporting localization for the reports is a great feature. So I used Ely Grey's l10n library to add localization support for jasmine-species. If you feel this is a good contribution feel free to take a look in my fork at https://github.com/ericchaves/jasmine-species

I haven't made a pull request because I'm not really of a JS developer and therefore I'm not sure if my code is the best approach to it.

Best regards,

Eric.

Fix jsFiddle Quick start demo

  • Revert usage of head.js
  • Simplify the example as much as possible
  • Extract description into the actual documentation page?

"auto-export" switch to bring specified modules into global namespace

In order to start writing features and stories without additional dependencies
As a new jasmine-species user
I want to use a global setting to inject grammar into my global namespace

I am not a real fan of any js library dumping its innards or public api into my global namespace unless I ask for it. However since jasmine does this as a matter of convenience, jasmine-species, particularly the grammar package, should provide this "feature" to users.

It should help make it easier for new users to get up and running faster.

Proposed:

var jasmineSpecies_conf = {
    autoexport: [
        'jasmine.grammar.FeatureStory.*'
    ]
};

Report does not support jasmine 1.3.1

I guess as it don't support 1.2 then you already know this, but i thought i would register my interest.

If someone gave me some pointers i may fork and fix myself

In the documentation, clarify requirements and improve flow

1. Clearly indicate requirements for jasmine-species

Since the grammar is not auto-exported into the user's global namespace, they should be made aware of the fact that they need a javascript namespace importer of sorts (e.g. Namespace.js) to make the grammar available.

2. Reorganize the sections to improve allow users to move around easier

  • Consider consolidating some sections
  • Provide better context around the quick start example

GWT grammar incompatible with CoffeeScript

While porting a jQuery plugin to CoffeeScript, I discovered your jasmine extensions and, more importantly, that the GWT grammar uses three CoffeeScript reserved words (when, then, and and) as function names.

At the time, I just rewrote my spec to avoid jasmine-species, but now I've forked your project and added three new, and hopefully comparable, functions to the grammar: whilst, hence, and likewise.

I've updated the specs to match, and will submit a pull request shortly, noting the number in a comment on this issue.

Once I've updated the docs, I'll submit a pull request for that, as well.

Namespaces cause code-completion trouble

Using the namespaces might cause issues with code-completion tools. It does with Visual Studio.
In VS I can get IntelliSense to do the code-completion when I work in a seperate .js file. The trick is to use the following command:
/// < reference path="path-to-file.js" />
Unfortunatelly this doesn't work when the grammars are imported using Namespace.js. To make it work, I end up importing the names by hand, i.e.:

var given = jasmine.grammar.GWT.given;
var when = jasmine.grammar.GWT.when;
// etc.

This would be fine if it was enough, but currently I need to import some implementation specific stuff:

var _addStepToCurrentSpec = jasmine.grammar.GWT._addStepToCurrentSpec;

I'd like Jasmine Species to:

  • drop the namespaces, or
  • maintain manual import file, or
  • let the user make the manual import, but make sure that he doesn't have to import implementation specific functions

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.