Skip to content

sherllochen/code-kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

SETUP ADN RUN

0. cd to root directory

1. Build image

docker build . --build-arg RUBY_VERSION=3.1.4 -t code-kata

2. Run container

docker run -it -v $(pwd):/app code-kata

3. Run test(in container)

After running tests, a coverage report will be generated in coverage/index.html.

rspec

4. Change permission(in container)

chmod +x bin/entry

5. Run cli application(in container). The environment variables are all optional.

  • MOCK: default as false, when given, there will be no real request.
  • AMOUNT: default as 20, the amount of urls.
  • THREAD: default as 2, the amount of request threads running in parallel.
MOCK=1 AMOUNT=100 THREAD=2 bin/entry

About

A interesting code challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published