Code Monkey home page Code Monkey logo

eschertesting.jl's Introduction

EscherTesting.jl

Selenium Test scripts and Utilities for Escher.jl

Requirements
Project structure

for each $(JULIADIR)/example/<name>.jl there should be an associated test_<name>.py and test_<name>.jl. Each contains several tests cases corresponding to the example.

runtests.jl will start a server and run each test file indepently. You may run the python test with the command-line option --py,

As of now the Julia version uses PyCall, but Selenium bindings may be used in the near future

Command line options
usage: runtests.jl [-x] [-y] [-s] [-d DRIVER] [-p PORT] [-h]
                   [files...]

This program runs Selenium tests on a list of Escher examples

positional arguments:
  files                list of files to run tests on, will look for
                       run_<filename>.jl in current dir for each test
                       (default:
                       ASCIIString["form","recursive-layout","layout2"])

optional arguments:
  -x, --xvfb           Run browser in a virtual framebuffer (Requires
                       XvfbWrapper.jl)
  -y, --py             Run python version of tests
  -s, --serve          Serve examples folder before running tests
  -d, --driver DRIVER  Driver (Browser) to use, case-sensitive
                       (default: "Chrome")
  -p, --port PORT      Port to run the HTTP server on (type: Int64,
                       default: 5555)
  -h, --help           show this help message and exit
Roadmap
  • fix scope by putting tests into modules
  • create Julia selenium bindings to WebDriver (low priority)
  • inline-tests
  • Travis-CI

External References

Escher
Selenium
Polymer
Shadow DOM

eschertesting.jl's People

Contributors

notthemessiah avatar

Watchers

 avatar  avatar  avatar

Forkers

peter1000

eschertesting.jl's Issues

Merge into Escher.jl?

I just came across this, and in your opinion, would it be easy to merge some of this stuff as automated tests into Escher.jl itself?

P.S. Thanks for this! :)

Use FactCheck.jl?

Advantages:

  • beautify and organize shell output
  • independently test cases

Disadvantages:

  • additional package (but less than 1MB), which may be of concern if we wish to integrate tests with Escher.jl package
  • seems easy enough to reimplement that which makes it useful.

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.