All Projects → rambasnet → Kattis-Demos-Testing

rambasnet / Kattis-Demos-Testing

Licence: MIT license
Kattis demo solutions with unit testing

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
C++
36643 projects - #6 most used programming language
Makefile
30231 projects
java
68154 projects - #9 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Kattis-Demos-Testing

ProgrammingProblems
Our answers to some programming problems,like ACM ICPC problems and others.(All problems are available on http://uva.onlinejudge.org or https://open.kattis.com) ** PLEASE STAR THE REPO IF IT 'S USEFUL :) **
Stars: ✭ 27 (+92.86%)
Mutual labels:  kattis, kattis-solutions
psolving-paradigms
Common problems of dynamic programming methods and techniques, including prerequisites, for competitive programmers.
Stars: ✭ 34 (+142.86%)
Mutual labels:  kattis
Angular Puppeteer Demo
A demonstration repository explains how to using Puppeteer in unit testing
Stars: ✭ 59 (+321.43%)
Mutual labels:  automated-testing
Automationtest
自动化测试,支持接口自动化、WEB UI自动化、APP UI自动化、性能测试
Stars: ✭ 171 (+1121.43%)
Mutual labels:  automated-testing
Reportportal
Main Repository. Report Portal starts here - see readme below.
Stars: ✭ 1,175 (+8292.86%)
Mutual labels:  automated-testing
Taisite Platform
最强接口测试平台
Stars: ✭ 203 (+1350%)
Mutual labels:  automated-testing
Spix
UI test automation library for QtQuick/QML Apps
Stars: ✭ 48 (+242.86%)
Mutual labels:  automated-testing
Burp Molly Scanner
Turn your Burp suite into headless active web application vulnerability scanner
Stars: ✭ 146 (+942.86%)
Mutual labels:  automated-testing
Selenium Java Lean Test Achitecture
Ready to use Lean Test Automation Architecture using Java and Selenium WebDriver to speed up your test automation
Stars: ✭ 152 (+985.71%)
Mutual labels:  automated-testing
Grizzly
A cross-platform browser fuzzing framework
Stars: ✭ 234 (+1571.43%)
Mutual labels:  automated-testing
Sillynium
Automate the creation of Python Selenium Scripts by drawing coloured boxes on webpage elements
Stars: ✭ 100 (+614.29%)
Mutual labels:  automated-testing
Nightwatch
End-to-end testing framework written in Node.js and using the Webdriver API
Stars: ✭ 10,912 (+77842.86%)
Mutual labels:  automated-testing
Automagic
web automated test platform with Python Django
Stars: ✭ 215 (+1435.71%)
Mutual labels:  automated-testing
Poco
A cross-engine test automation framework based on UI inspection
Stars: ✭ 1,177 (+8307.14%)
Mutual labels:  automated-testing
solutions
Solutions to online programming problems
Stars: ✭ 36 (+157.14%)
Mutual labels:  kattis
Vscode Ruby Test Adapter
A Ruby test adapter extension for the VS Code Test Explorer
Stars: ✭ 50 (+257.14%)
Mutual labels:  automated-testing
Cluecumber Report Plugin
Maven plugin for clear and concise Cucumber BDD test reporting.
Stars: ✭ 173 (+1135.71%)
Mutual labels:  automated-testing
jdi-dark
Powerful Framework for Backend Automation Testing on Java (Rest, Soap, WebSocket)
Stars: ✭ 36 (+157.14%)
Mutual labels:  automated-testing
py-mon
Simple package to automatically restart application when file changes are detected!
Stars: ✭ 33 (+135.71%)
Mutual labels:  automated-testing
Restito
Restito - mocking framework for testing rest clients
Stars: ✭ 217 (+1450%)
Mutual labels:  automated-testing

Kattis Demos with Unit Testing

Demo solutions with unit testing for some problems from https://open.kattis.com

Requirements

  • Linux/Mac/WSL (Windows Subsystem Layer) bash terminal is preferred along with language specific tools (compiler/interpreter, etc.) properly installed

  • On Windows g++ compiler is required to compile and run C and C++ code from command prompt

  • pytest Python3 package for testing Python3 solutions

pip3 install -U pytest
pip3 install -U mypy

Programming Languages

  • demos are provided in the following several languages
  • follow the instruction based on your language and operating system

C++

  • open a terminal on Mac/Linux/WSL or cmd prompt on Windows
  • change working directory to a problem folder, e.g.
  cd cold/C++
  • compile using g++ or use provided Makefile
  g++ -std=c++14 cold.cpp
  make
  • run unit testing; user provided test cases
  • on Mac/Linux, either run the program with test argument or use the provided Makefile
  ./a.out test
  make unit_test
  • on Windows:
  a.exe test
  • run kattis provided sample test cases e.g. if 1.in and 1.ans are sample test files:
  • on Mac/Linux/WSL Terminal
  cat 1.in | ./a.out | diff - 1.ans
  make kattis_test
  • on Windows cmd prompt:
  > type 1.in | a.exe > out1.txt
  > FC out1.txt 1.ans

Python3

  • open a terminal on Mac/Linux/WSL or cmd prompt on Windows
  • change working directory to a problem folder, e.g.,
  cd cold/python3
  • run unit tests; user provided test cases
  • several different ways...
  python3 cold.py test
  python3 test_cold.py
  python3 test_unit_cold.py
  pytest # make sure pytest is installed
  python3 -m unittest

Testing Python OOP solutions

  • open terminal
  • change current working directory to OOP folder inside problem/python3 folder
  • run the following commands
  mypy --strict <module>.py
  mypy --strict test_<module>.py
  pytest
  python3 -m unittest
  python3 test_<module>.py
  • run kattis provided sample test cases e.g. if 1.in and 1.ans are sample test files
  cat 1.in | python3 cold.py | diff - 1.ans
  • on Windows cmd prompt
  type 1.in | python3 cold.py > out1.txt
  FC out1.txt 1.ans

NodeJS

  • open a terminal on Mac/Linux/WSL or cmd prompt on Windows
  • change working directory to a problem folder
  • run unit testing with your own test cases
  • uses Jest Unit Testing Framework
  • run the following commands on a Terminal
  cd cold
  npm install
  npm run jest
  npm run kattis_test
  • run kattis provided sample test cases e.g. if 1.in and 1.ans are sample test files
  • on Mac/Linux Terminal
  cat 1.in | node cold.js | diff - 1.ans
  • on Windows cmd prompt:
  type 1.in | node cold.js > out1.txt
  FC out1.txt 1.ans

C

  • open a terminal on Mac/Linux/WSL or cmd prompt on Windows
  • change working directory to a problem folder, e.g.
  cd cold
  • compile using gcc
  gcc cold.c
  • run unit testing; user provided test cases
  • write and use a Makefile as demonstrated in C++ section
  ./a.out test
  • run kattis provided sample test cases e.g. if 1.in and 1.ans are sample test files
  • on Mac/Linux Terminal:
  cat 1.in | ./a.out | diff - 1.ans
  • on Windows cmd prompt
  type 1.in | a.out > out1.txt
  FC out1.txt 1.ans

Java

  • See each problem folder
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].