This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

How to test NodeJS code unlike java script which can be put in HTML and tested?  RSS feed

 
Ranch Hand
Posts: 1025
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To test java script code we can put that in HTML with script as java script tag. How can be test NodeJS code?

thanks
 
Bartender
Posts: 1868
81
Android Chrome IntelliJ IDE Java MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To test NodeJS you would probably want to use a framework like one of those listed here https://raygun.com/blog/javascript-unit-testing-frameworks/ which includes Jasmine, Mocha, AVA, Tape and Jest.
 
Monica Shiralkar
Ranch Hand
Posts: 1025
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we do this in Eclipse?
 
Pete Letkeman
Bartender
Posts: 1868
81
Android Chrome IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use any IDE of choice for JavaScript editing including Eclipse. Some IDEs work better for some projects and some people. Some times the employer forces an IDE on you.
 
Monica Shiralkar
Ranch Hand
Posts: 1025
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
If you are using a wood chipper, you are doing it wrong. Even on this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!