hackacrow

所属分类:编程语言基础
开发工具:Crystal
文件大小:0KB
下载次数:0
上传日期:2023-10-02 00:20:10
上 传 者sh-1993
说明:  快速运行任何编程语言的测试!,
(Run tests for any programming language quickly!,)

文件列表:
LICENSE (1117, 2023-10-14)
expect/ (0, 2023-10-14)
expect/expect.example.json (97, 2023-10-14)
expect/expect.json (2415, 2023-10-14)
lang/ (0, 2023-10-14)
lang/lang.json (750, 2023-10-14)
samples/ (0, 2023-10-14)
samples/1.cr (130, 2023-10-14)
samples/1.rb (130, 2023-10-14)
scripts/ (0, 2023-10-14)
scripts/docker.sh (4493, 2023-10-14)
shard.lock (24, 2023-10-14)
shard.yml (230, 2023-10-14)
spec/ (0, 2023-10-14)
spec/hackacrow_spec.cr (890, 2023-10-14)
spec/run_spec.cr (2765, 2023-10-14)
spec/spec_helper.cr (42, 2023-10-14)
src/ (0, 2023-10-14)
src/docker.cr (302, 2023-10-14)
src/hackacrow.cr (2125, 2023-10-14)
src/main.cr (37, 2023-10-14)
src/run.cr (3707, 2023-10-14)

# hackacrow Have you ever been interested in a practical and simple way to perform tests for multiple programming languages on multiple occasions? Well, this case fits very well into examples of hackathons in which we can have multiple programming languages to solve different exercises. The objective of hackacrow is to be a tool that will allow you to run tests in a simple way, with expected inputs and outputs informed via JSON, in a simple way! ## Installation Okay, now is the time to carry out the installation! You can download the binaries and send them to your favorite location (such as `/usr/bin` or a specific directory) and you can now use them! Installation with Crystal is also very simple, just have Crystal (and Shards) previously installed and then run: ```sh shards build --release ``` Done! Now in the `./bin` directory we will have an executable named `hackacrow`! Use wisely and enjoy! ## Usage What types of commands can I run? Well, as the main functionality is to run tests, you will therefore enter the name of the file you want to run and the exercise number (in this case, there is a JSON for expected inputs and outputs found in `./expect/expect.json` , being an array)! Ok, but you might be wondering "don't I need to enter the language I want to run"? No! Hackacrow automatically checks the extension of the file to be executed in another JSON file found in `./lang/lang.json`, knowing exactly which command to use! If you want to test, there are two sample files! Just run: ```sh shards build --release && ./bin/hackacrow -c 1 ./samples/1.cr ``` > Note: The `-c` flag is used to check the output of a command, in this case `1` would be the exercise and `./samples/1.cr` the name of the file to be tested! ## Development Contributions are **extremely appreciated**! We currently have some issues open [here](https://github.com/lanjoni/hackacrow/issues), so development is always active! Don't know Crystal? Come and see, the community is incredible and the syntax is extremely elegant (like Ruby) with the performance of a compiled language! Do you know Ruby? Then you know Crystal! Just read a few lines of code and you will understand how they are very similar! Why Crystal? Because Crystal is incredible, brilliant has an absurd performance! Try giving it a try, I'm sure you won't regret it! ## Contributing 1. Fork it () 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request ## Contributors - [@lanjoni](https://github.com/lanjoni) - creator and maintainer

近期下载者

相关文件


收藏者