Giter Club home page Giter Club logo

tact's Introduction

TACT

Tester for MeeshQuest's Automated Canonical Tester

Overview

This short python script first goes through all of the existing tests on the ACT and downloads all of the tests you currently don't have. The script then runs your jar file with all of the tests, and uses diff to compare the ACT output and your jar file's output. The python script will be timeconsuming running the first time, as it has to download all of the tests. I ran the script fresh against 2500 tests for part 2, and it took several minutes.

Prerequisites

Have a Unix machine (not sure if this works for Windows because the script uses diff)

Have Python 2.7 (not sure if this works for Python 3)

Set up BeautifulSoup

Installing

  1. Create a new folder, and place TACT.py into new folder

  2. Create a runnable JAR file.

  • In Eclipse, Right click your project, choose 'Export...'
  • In the pop-up, underneath Java, choose 'Runnable JAR file' and click Next
  • In Launch Configuration dropdown, choose 'MeeshQuest - PROJECT_NAME_YOU_ARE_EXPORTING'
  • Make the export destination the same folder TACT.py is in and click Finish
  1. Place the relevant part*.xsd file in the same folder as TACT.py, as well as the relevant *.xsl file if needed

  2. In the TACT.py file, the base_url variable should be changed to the relevant part you are on

Running the tests

The python script takes 1-2 arguments. You NEED to input the .jar file. You can also optionally provide a test number to start at

Samples:

python TACT.py JARFILE.jar 4

python TACT.py JARFILE.jar

Contributing

Feel free to make a pull request/get in contact with me if you have improvements. This code was written up in 2 hours, so I know it's not the best

Known Problems

(For part 2) TACT doesn't place nice when invalid input is given to the ACT. You could fail a lot of tests because points were simply put too close together.

tact's People

Contributors

goccert25 avatar

Stargazers

Michael Anderjaska avatar  avatar

Watchers

James Cloos 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.