Skip to content

hanksudo/exercism

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exercism

Practice different programming lagnauges on exercism.io

python golang rust ruby

Python

# Installation
brew install python
pip install -U pytest

# Run test
pytest

Kotlin, Java

# Installation
brew install openjdk, kotlin, gradle

# Run test
gradle test

JavaScript

npm install
npm test

Golang

# Installation
brew install go

# Run test
cd go && go list -f '{{.Dir}}' -m | xargs go test --bench --benchmem --cover

Bash

# Installation
brew install bats

# Run test
bats *_test.sh

Rust

# Installation
brew install rust

# Run test
cargo test
cargo test -- --ignored

# Test all
sh ./rust/run-tests.sh

Ruby

gem install minitest
ruby -r minitest/pride hello_world_test.rb

# Test all
cd ruby && rake

Swift

# runs tests 
swift test

# creates an Xcode project
swift package generate-xcodeproj