Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple test should be easier to code #134

Open
flbulgarelli opened this issue Feb 11, 2018 · 1 comment
Open

Simple test should be easier to code #134

flbulgarelli opened this issue Feb 11, 2018 · 1 comment

Comments

@flbulgarelli
Copy link
Member

In order to allow more people to write their own exercises, providing a simpler interface for entering a test is essential.

Nowadays, the content writer must have a deep understanding of the language, test framework and/or runner details in order to write their own tests.

We should be able to enter simple tests as fixture-tables, using a clean an simple UI. It should translate to a simple, generic, cross-language spec of a test, like the following:

Testing a function

subject:  succ
examples: 
- arguments: 
   - 1
 return: 2
- arguments: 
   - 4
 return: 5

Testing a procedure that performs I/O

subject:  echo
examples: 
- input: helllo
  output: hello
- input: world 
  output: world

Testing a program that performs I/O

examples: 
- input: helllo
  output: hello
- input: world 
  output: world

Others

We should still define how we want to declare testing of subroutines that perfom some kind of modification of a global matricial state, like in gobstones, SQL or QSIM.

See https://github.com/flbulgarelli/tester

@flbulgarelli
Copy link
Member Author

@flbulgarelli flbulgarelli transferred this issue from another repository Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant