Coder Social home page Coder Social logo

Comments (5)

searls avatar searls commented on July 24, 2024

Thanks for pointing this out. I wasn't aware that jasmine.log even existed. If you'd consider adding support in a pull request, I'd be happy to pull it in.

In the meantime, I'd imagine most of the situations in which I'd want to log output, I'd be actively developing code, so I'd suggest doing that with the jasmine:bdd command & a browser (which presumably show the output).

from jasmine-maven-plugin.

ivarni avatar ivarni commented on July 24, 2024

Is there another way around it?

I currently have a test that runs green with jasmine:bdd in the browser but fails during mvn install. It uses sinon.js fakeTimers to alter the global Date object and I suspect that has something to do with it. But to investigate any further I'd really need to either debug or "poor man debug" with logging while the test runs outside the browser. If there's some easy way to get logging to work I could dig into it and try to find out what's going wrong.

from jasmine-maven-plugin.

searls avatar searls commented on July 24, 2024

@ivarni I'm probably not going to work on this issue anytime soon, but I'd recommend you try faking time differently. Maybe wrap Date in an abstraction you own and fake that abstraction, or use another time faking library like Timecop.js

from jasmine-maven-plugin.

ivarni avatar ivarni commented on July 24, 2024

Yes, that seems to work. I guess the problem is with sinon.js on HtmlUnitDriver but either way I'm happy to use Timecop and that removed my current need for logging. I'm just leaving this comment here in case other people stumble upon similar problems and I won't derail this issue further.

from jasmine-maven-plugin.

klieber avatar klieber commented on July 24, 2024

Closing this issue because it hasn't been active in over 3 years. If this is still an issue with the current version of the plugin please add a comment with the latest information on the issue and I will reopen it.

from jasmine-maven-plugin.

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.