Giter Site home page Giter Site logo

hiro's Introduction

Hiro
====

Hiro is a framework for testing third-party JavaScript applications.
It runs each test suite in a separate sandbox preventing global state
leaks and conflicts.

Stable version can be found here: http://hirojs.com/. The current
*master* branch contains the source of Hiro 2, backwards incompatible
iteration of Hiro that is scheduled to be released soon.

Patches
-------

Before submitting a patch please make sure that:

  0) You have an issue opened describing your problem or proposal.
  1) You use tabs for indentation.
  2) Your coding style looks similar to what is already in the repo.
  3) All JavaScript files pass JSHint check (you can run 'grunt lint'
     to automatically lint files.
  4) All tests pass. To run tests open 'tests/test.html' in your
     browser.
  5) Example tests behave as intended. To check that execute 'grunt run'
     and open http://localhost:7777/ in your browser. Execute all tests
     and you should see only three failures:

       * BasicTests.testFailedTest
       * Basictests.testFailedExpect
       * FailedSuite.testSimple

     These failures were introduced for UI demonstration purposes.
  6) Your commit messages look good (no one-liners please). See most
     recent commit messages for reference.

Author
------

Anton Kovalyov
http://anton.kovalyov.net
@valueof

hiro's People

Contributors

benvinegar avatar bobylito avatar marijn avatar tail avatar valueof 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  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  avatar

hiro's Issues

Strict comparison in assert methods

Right now the assert functions are using loose comparison operators within the assert methods, is there any particular reason not to use strict comparisons?

Gracefully handle invalid resources

In cases where Hiro fails to load certain resources the test suite will stop executing.

For example, we have several test cases which will load an html, javascript, or css file, and as soon as that fails the test suite bails (no events are fired/etc).

Extra assertions

I think it would be nice to have a few more assertions.

  • assertGreaterThan
  • assertGreaterThanOrEqualTo
  • assertLessThan
  • assertLessThanOrEqualTo
  • assertUndefined
  • assertNull
  • assertInstanceOf
  • assertObjectHasProperty
  • assertArrayContains

I'm not to sure about the names of the last two. What do you think?

Would you like me to open a PR?

License File

Hi,
This looks like a nice testing framework, but it doesn't have a license file or any license embedded in the source code. Would you mind adding one? cough Permissive license cough

Thanks

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.