test-environments

Setting Test environment variables in rails without putting in source code

你离开我真会死。 提交于 2020-01-25 08:42:07
问题 I'm using Twilio for an app and on production I set the auth token using heroku's CLI. I'm using sms-spec (https://github.com/monfresh/sms-spec) to test my app's Twilio integration locally. I want to set ENV['TWILIO_AUTH_TOKEN'] to my token in the test environment. I use guard to auto-run my tests whenever I make changes so I don't want to have to manually set the ENV variable each time I run tests. I also don't want to put the token in my source code for security reasons. Is there a way I

Dockerfile production/build/debug/test environment

佐手、 提交于 2020-01-02 07:15:08
问题 Imagine you have your web application and some workflow executors: http-server (serving pre-build asset files) - production builder (compiling/bundling js/css/html from sources) - deployment/development debugger/builder (building from sources on the fly, add js source maps) - development selenium (running tests) - integration testing How can we construct layered images to get those workflow executors working the most effectively? By effectively I mean "fastest to run and least to write". 回答1:

RequireJS: loading different files according environment

狂风中的少年 提交于 2019-12-30 06:54:47
问题 Is there any functionality to load different files according on current project environment (development or production for example)? I mean something, that helps me transparently loading minified or full files. I read about multiversion loading, but multiversioning means that I need to specify version of file. For example I have module.js file with my module. In this file I need to load jQuery: require(['jquery]); But I have minified and full version of jQuery and I want to load different

Keeping testing and production server environments clean, in sync, and consistent

空扰寡人 提交于 2019-12-17 22:40:38
问题 It seems that the company that I work for is always struggling with our customers’ server environments . Specifically, we almost always encounter problems with testing servers and production servers, and the fact that they always seem to be configured differently. When we test the applications that we develop, the testing servers behave in one way, and thus we tweak and configure our applications to fit that particular behavior. But when we install the same application on the production

How to keep track of performance testing

与世无争的帅哥 提交于 2019-12-10 20:39:36
问题 I'm currently doing performance and load testing of a complex many-tier system investigating the effect of different changes, but I'm having problems keeping track of everything: There are many copies of different assemblies Orignally released assemblies Officially released hotfixes Assemblies that I've built containing further additional fixes Assemblies that I've build containing additional diagnostic logging or tracing There are many database patches , some of the above assemblies depend

Dockerfile production/build/debug/test environment

泪湿孤枕 提交于 2019-12-05 21:03:06
Imagine you have your web application and some workflow executors: http-server (serving pre-build asset files) - production builder (compiling/bundling js/css/html from sources) - deployment/development debugger/builder (building from sources on the fly, add js source maps) - development selenium (running tests) - integration testing How can we construct layered images to get those workflow executors working the most effectively? By effectively I mean "fastest to run and least to write". The answer might be straightforward: just create 4 Dockerfile s one depending on another. You can add a

Best practice for test and production environments

烂漫一生 提交于 2019-12-04 00:24:34
问题 In the company I work, we have 2 environments: test and production. We are not currently starting a new environment, because of cost. Here is the procedure we follow: business makes a feature request, development makes it happen and deploy on test environment. Then business tests it (UAT), and if it's OK, the feature will be included into next production deployment. The problem reveals on test DB. Developers treat test environment as their playground, and sometimes they rest the DB to initial

RequireJS: loading different files according environment

ⅰ亾dé卋堺 提交于 2019-11-30 21:15:25
Is there any functionality to load different files according on current project environment (development or production for example)? I mean something, that helps me transparently loading minified or full files. I read about multiversion loading, but multiversioning means that I need to specify version of file. For example I have module.js file with my module. In this file I need to load jQuery: require(['jquery]); But I have minified and full version of jQuery and I want to load different files. I am thinking about something like this in config: require.config({ paths: { 'jquery' : function(){