Git Product home page Git Product logo

local-turing's Introduction

Local Turing

GitHub release (latest by date)

This is a simple tool to run your tests on your local machine.

Example of usage

Open to see the demo

asciicast

Installation

go install github.com/ic-it/local-turing@latest

Or download the latest release from here.

Configuration

Schemas:

Test file example:
tests.json gist

Example config file:

# yaml-language-server: $schema=https://raw.githubusercontent.com/ic-it/local-turing/main/assets/schemas/config.json

# Cloud Turing configuration
cloud-turing:
  name: xchaban
  password: SomePassword
  url: https://www.turing.sk # (optional)

# Local Turing configuration
local-turing:
  tests-file: tests.json
  # (optional) if not specified you must specify the executable for each assignment
  build-commands: 
    - mkdir --parents bin
    - clang -O0 -Wall -Werror -std=gnu11 -g3 -ggdb -fno-omit-frame-pointer main.c -o bin/main
  # (optional) if not specified, you must specify the build-commands for each assignment
  executable: bin/main 
  # (optional) if not specified, you must specify the main-file for each assignment
  main-file: main.c
  assignments:
    - name: teap-uloha-1-1
      dir: 1-1            # (optional) if not specified, the name of the assignment is used
      build-commands:     # (optional) if not specified, the build-commands from the global config are used
        - make
      executable: bin/1-1 # (optional) if not specified, the executable from the global config is used
      main-file: main.c   # (optional) if not specified, the main-file from the global config is used
      push-name: teap-uloha-1-1 # (optional) if not specified, the name of the assignment is used
    - name: teap-uloha-1-2
      dir: 1-2
    - name: teap-uloha-2-1
      dir: 2-1
    - name: teap-uloha-2-2
      dir: 2-2
    - name: teap-uloha-3-1
      dir: 3-1
    - name: teap-uloha-3-2
      dir: 3-2
    - name: teap-uloha-4-1
      dir: 4-1
    - name: teap-uloha-6-1
      dir: 6-1
    - name: teap-uloha-6-2
      dir: 6-2
    - name: teap-uloha-7-1
      dir: 7-1
    - name: teap-uloha-7-2
      dir: 7-2
    - name: teap-uloha-8-1
      dir: 8-1

Usage

Create or download tests file:

curl -o tests.json https://gist.githubusercontent.com/ic-it/7c401138b41ffc2b4f3c1105abacdabf/raw/e10872b2a161f04bfb357cdd93d634695b93fc60/tests.json

Run local-turing:

local-turing test
local-turing -C test | less -S

License

MIT

local-turing's People

Contributors

ic-it avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.