Giter Site home page Giter Site logo

Comments (4)

jbeezley avatar jbeezley commented on May 16, 2024

I have an experimental revamp of the unit testing framework here: https://github.com/OpenGeoscience/geojs/tree/fix-build-testing

It allows you to do for example:

cmake -DBUILD_GEOJS_TESTING=ON ${GEOJS_SOURCE_DIR}
make
ctest

The jasmine tests are added as individual ctest targets. The method for doing this was ruthlessly stolen from @ronichoudhury's code in Kitware/tangelo.

from geojs.

jbeezley avatar jbeezley commented on May 16, 2024

This, #31, and #19 are all related, so I'm pinging them here.

I updated fix-build-testing to fix the server port issue. I also added an option for node path in the CMakeLists. Grunt expects node to be in the PATH, so I am just adding the given path to the environment variable for each test. A little ugly, but it seems to work.

from geojs.

waxlamp avatar waxlamp commented on May 16, 2024

Ruthlessness appreciated :)

Let me know if you run into problems with the general setup, or if you come
up with enhancements etc.

On Tue, Apr 8, 2014 at 11:10 AM, Jonathan Beezley
[email protected]:

I have an experimental revamp of the unit testing framework here:
https://github.com/OpenGeoscience/geojs/tree/fix-build-testing

It allows you to do for example:

cmake -DBUILD_GEOJS_TESTING=ON ${GEOJS_SOURCE_DIR}
make
ctest

The jasmine tests are added as individual ctest targets. The method for
doing this was ruthlessly stolen from @ronichoudhuryhttps://github.com/ronichoudhury's
code in Kitware/tangelo https://github.com/Kitware/tangelo.


Reply to this email directly or view it on GitHubhttps://github.com//issues/40#issuecomment-39859737
.

from geojs.

jbeezley avatar jbeezley commented on May 16, 2024

As it turns out we need to use selenium for webgl support, so I am running the tests now through a grunt plugin, grunt-webdriver-jasmine-runner, rather than phantomjs.

from geojs.

Related Issues (20)

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.