Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automated testing #342

Closed
trentm opened this issue Jan 28, 2016 · 5 comments
Closed

automated testing #342

trentm opened this issue Jan 28, 2016 · 5 comments

Comments

@trentm
Copy link
Owner

trentm commented Jan 28, 2016

Bunyan needs to use an automated testing system/service. Currently it relies on me running 'make testall' (which effectively runs 'make test' on a number of node versions I have installed). Doing this on a number of platforms is impractical for me.

Requirements (possibly reduced to nice-to-haves if I can't easily find a service that offers it):

  • platforms: Mac, Linux, SmartOS, and maybe Windows
  • node.js versions: 0.10, 0.12, 4.x, 5.x
  • the dtrace-integration parts of the test suite require 'root', is that possible?
  • browser testing: Bunyan is meant to work in the browser as well. It would be super helpful to automate testing that as well

I suspect this is a tall order. I haven't used any of the testing services for a long time. I have access to cloud resources at my job at Joyent, so a low cost home rolled system is possible. I'd like to avoid that if I can.

Eventually using this for PR checking via GitHub's webhook support would be great.

Question for others: Any experiences with the various testing services out there? Comments on which are available and how many of the above requirements they tick off would be helpful.

@glenjamin
Copy link

I'm just kicking off a new project an did a survey of available logging libs - bunyan still tops my list - so glad to hear there's still life in the project.

I've had great success with travis CI in the past, it's github integration is really simple and it is able to run on lots of node versions.

Running on windows, browsers dtrace supported systems is a bit trickier.

I can send a PR which runs all relevant tests on those node versions on linux via travis if you like. Could be a good starter for 10?

@trentm
Copy link
Owner Author

trentm commented Feb 22, 2016

Note to self: A note on #311 that mocha can test under NW.js: mochajs/mocha#960
My hope is to move to tape for the test lib, FWIW.

@trentm
Copy link
Owner Author

trentm commented Feb 22, 2016

I can send a PR which runs all relevant tests on those node versions on linux via travis if you like.

@glenjamin I think that would be a great start, if it wouldn't take you too much effort.

Could be a good starter for 10?

What do you mean by "10"?

@glenjamin
Copy link

What do you mean by "10"?

Ah, I forgot that it's a colloquial British phrase!

http://answers.google.com/answers/threadview/id/193772.html

@Srokap
Copy link
Contributor

Srokap commented Jul 10, 2016

Travis CI is pretty mature CI service that's free for OSS projects.

It does provide osx and linux environments with sudo access. A lot of stuff is bundled nowadays, but you can go crazy and install custom packages if necessary.

It supports any node js version we could possibly need https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Available-Versions

I was doing some headless browser testing in the past, should be no problem as well.

As far as I know, it doesnt support windows and smartOS is not on a road map at the moment travis-ci/travis-ci#1368

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants