-
Notifications
You must be signed in to change notification settings - Fork 0
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
Create a common test infrastructure #1
Comments
We need to install a testing framework anyway. I guess we can host it somewhere and run tests remotely. |
No, what I mean is - we do not need to do it manually, neither make users do it. It can be perfectly automated and taken care by dependency management, be it NPM, Ivy, Maven or whatever we chose. Best user experience in the software engineering is a "single command build", no need to developer to do anything, except run the thing. I'm interested in to perusing this kind of perfection. In the example from NTYLabs: they assume Ruby+Rspec installed on dev env. Although os x has one by default but I would say it's quite heavy assumption, considering "RVM vs RBEnv". So options I see here:
|
A lot of fun with the styles of acceptance tests in BDD http://scalatest.org/user_guide/selecting_a_style So I guess by 'spec' I meant an acceptance tests that could be run with on a local machine with the single command like |
I assume, Python comes preinstalled not only on OSX, but also on some Linux distributions, so probably it's the least heavy version? That said, I know nothing about Python dependency management and build automation. Can it install dependencies locally (e.g. like node does in |
Good point. The only issue with pre-installed python package in Linux is - version :( it is still mostly Python 2.6 witch is horrible and the least version we should be using now, if not 3 then Python 2.7 (i.e CentOS 6.5, second most popular server linux distro, after ubuntu, STILL ships with python 2.6 by default) In python there is great tool for dependency management called Usual workflow with python software looks like:
|
This is how typical very-well implemented dependency management looks like in C++ world https://github.com/google/certificate-transparency#dependencies |
I can try to make one in node with jasmine, for example. And leave the decision about Python version to you, because I have no clue :) |
The idea: have a common executable spec for the service which can be re-used\shared to verify high-level correctness of the implementation in any technology stack.
Example: NYTimes Lab has Go software (REST API server, talking to Elasticsearch as backend) with spec in Ruby https://github.com/nytlabs/hive/blob/master/spec/hive_spec.rb
The only requirements are:
@felizbear do you have any ideas how to do that?
The text was updated successfully, but these errors were encountered: