Commit graph

19 commits

Author SHA1 Message Date
simon 1e2c8852d4 Right! Generate-assertion now takes varargs and would generate assertions
for varargs, I'm just not yet passing the right number or arguments to it.
That's the next step, and shouldn't be hard.
2014-04-07 21:15:42 +01:00
simon 6d3b5d76a3 Tidy up and a bit of renaming; gets rid of those end-of-file exceptions. 2014-04-07 20:55:59 +01:00
Simon Brooke 3361d55d81 Solved the buffer-not-flushing bug. The reader was throwing an end-of-file
exception, which caused code to skip out of the try block. The writer
(dickens) wasn't in scope in the catch block, so could not have been
flushed there. Solution: move the try-catch into the loop.
2014-04-07 12:50:56 +01:00
Simon Brooke 7e173e99d0 It still only works for one-arg functions, but...
(also there is a problem with flushing the output file)
2014-04-06 18:37:14 +01:00
Simon Brooke c969dcdd2d Updated the README to reflect what (little) has been achieved tonight. 2014-04-06 00:05:55 +01:00
Simon Brooke ef6b042d64 A huge amount of work, but have not necessarily advanced very far.
Trying to get to the point that this can effectively be called on
other projects, and to be honest I think I'm almost there...
2014-04-06 00:02:57 +01:00
simon adca01416c Minore changes to documentation 2014-04-03 23:25:39 +01:00
simon 0400b3fa4b Now reads clojure source from a file, and emits tests to another file.
Definitely has many inellegances, but is currently generating and passing
tests on itself:
Ran 7 tests containing 114 assertions.
0 failures, 0 errors.
2014-04-03 23:22:24 +01:00
simon f4f114b12e Minor markdown fix. 2014-04-03 08:22:54 +01:00
simon 403d72b89c Fuller documentation in README.md 2014-04-03 08:21:26 +01:00
Simon Brooke 75a35a5043 Generated tests in a dogfood stylee, and added them. They succeed! 2014-04-03 00:27:35 +01:00
Simon Brooke f80627763c Merge branch 'master' of github.com:simon-brooke/testgen
Conflicts:
	src/testgen/core.clj
2014-04-02 22:42:29 +01:00
Simon Brooke da45c7049c Fix small bugs 2014-04-02 21:20:48 +01:00
Simon Brooke 6af03289e5 Generating some reasonably interesting arguments 2014-04-02 21:17:01 +01:00
Chris Ford d5f5b90ab8 Generate tests using detected constants and write-test. 2014-04-02 21:01:24 +01:00
Chris Ford bf29efecb3 Detect constants. 2014-04-02 20:54:11 +01:00
Simon Brooke f65185b963 Now handles things which throw exceptions 2014-04-02 20:51:11 +01:00
Simon Brooke 06f16d561f First function written 2014-04-02 20:10:27 +01:00
Simon Brooke ffc14194f4 New empty project 2014-04-02 19:56:31 +01:00