Joining norminette and molinette in a single command!
View Demo
·
Report Bug
·
Request Feature
Table of Contents
I decided to create this automated evaluation example to make the work more proactive. This script does not know what the "Molinette" standards are and can get some exercises wrong. Most of the exercises will only correct simple spelling errors and convert output data...
YOU SHOULD BE WISE, DON'T GET COMPLACENT WITH THIS TOOL BUT EXPLORE THE DOUBTS OF YOUR COLLEAGUE AND LEARN IN THIS TIME THAT HAS BEEN GAINED.
I am not an expert on the subject, in fact I created this in a few days watching youtube videos and basic javascript "hello world" tutorials, I tried to apply the concepts learned in shell00 and pass the data a validation in a higher level language. Below are some things I needed to read to make the thing work:
I will try to explain every step of how to evaluate your candidates with just a few commands in the installation part.
You don't need any requirements, but your machine must have the "node" program installed as administrator. Check if you already have it on your machine with:
- nodeJS
node -v && npm -v
or
-
The first step is to clone my project:
cd ~ && git clone https://github.com/israeloriente/orinette.git orinette
If everything works correctly you will receive this:
-
Install NPM packages We need to do this to download some packages that are not yet in the project, do it:
cd orinette && npm install
If everything works correctly you will receive this:
Can't do it or did you find an error? Help me by creating an issue!
Now your environment already has everything we need, in the next step we will see how to use it with your data.
Let's say you are evaluating someone from exercise C01, the first thing to do is to clone their repository. Let's do this:
video.mov
Let's go inside folder c01 because someone did the work of c01, so do it:
cd c01
The only file you need to modify is "dataCXX.js". this is where you can put the values that will be tested and the name of the person you want to evaluate. Below is a clone of "someone" but you can clone as many projects as you want from various people to do dynamic testing. Any other file in this folder you don't need to modify, just ignore it:
After changing the name in the "data" file just run the command "node testCXX.ts" which in this case is ex01:
node testC01.ts
running.mp4
Trying to test an exercise that doesn't work? Try doing a "git pull", maybe your version is not up to date :)
Any contribution is welcome, the code is very dirty and was made by someone who never did this before, if you also think you don't know, try to follow these steps to do it together, the comments and outputs are in Portuguese, let's honor the 42 LISBON :).
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.