https://github.com/mumuki/mumuki-html-runner
🕸️ Sinatra server for validating Web pages with HTML, CSS and JavaScipt within Mumuki
https://github.com/mumuki/mumuki-html-runner
code-evaluation educational hexp html mumuki nokogiri programming ruby runner web-development
Last synced: 3 months ago
JSON representation
🕸️ Sinatra server for validating Web pages with HTML, CSS and JavaScipt within Mumuki
- Host: GitHub
- URL: https://github.com/mumuki/mumuki-html-runner
- Owner: mumuki
- License: mit
- Created: 2017-03-28T16:54:44.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-20T19:42:21.000Z (about 2 years ago)
- Last Synced: 2024-04-14T02:23:15.070Z (about 1 year ago)
- Topics: code-evaluation, educational, hexp, html, mumuki, nokogiri, programming, ruby, runner, web-development
- Language: Ruby
- Homepage:
- Size: 131 KB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://waffle.io/mumuki/mumuki-html-runner)
[](https://travis-ci.org/mumuki/mumuki-html-runner)
[](https://codeclimate.com/github/mumuki/mumuki-html-runner)
[](https://codeclimate.com/github/mumuki/mumuki-html-runner/coverage)# mumuki-html-runner
> Sinatra server for validating HTML exercises within [Mumuki](http://github.com/mumuki)
## Prerequisites
Install `rbenv`:
>You can install rbenv following the instructions of this [Link](http://uqbar-wiki.org/index.php?title=Gu%C3%ADa_de_Instalaci%C3%B3n_de_Ruby)
Install `docker`
>You can install docker following the instructions of this [Link](https://docs.docker.com/get-started/)
## Setup
Open the Terminal Console, located in this project's
directory, run the following commands:bundle install
./bin/pull_worker.sh## Deploy docker image
```
cd worker/
# docker login
docker rmi mumuki/mumuki-html-worker
docker build -t mumuki/mumuki-html-worker .
docker push mumuki/mumuki-html-worker
```## Run tests
Note: When running tests you may recieve a Warning like this one:
` "[2015-07-16T11:03:48.197981 #2823] INFO -- : Not reporting to Code Climate because ENV'CODECLIMATE_REPO_TOKEN'] is not set."`
Don't worry about that, it doesn't mean that test is not working.
If you want to run tests by console you can do the following steps:
Open the Terminal console and inside the Project's directory run the following commands:bundle exec rspec
(that should run the expectation tests)
Also you can all the tests running the following command:
bundle exec rake
If you want to run the test using rubymine just look for the "spec" folder inside mumuki-html-runner project, right click on the previously mentioned folder and click on "Run all Specs..." option.
If you have done the steps correctly both ways of running test should do it successfully.
## Considerations
When using multiple files, it assumes that the main file will be called `index.html`.
## See also
Documentations for the dom assertions [is here](https://github.com/mumuki/run-dom-tests)