joereddington / watson

Some automatic tracking tools
0 stars 0 forks source link

Full testing for watson. #7

Open joereddington opened 7 years ago

joereddington commented 7 years ago

We need a bunch of test cases.

coverage run --branch test_watson.py 
joereddington commented 7 years ago
24/07/17 14:17:

Starting now.

14:19:

Running tests - I could do with a regression thing... Maybe I can use the current setup...

14:22:

Have I lost the test files?

14:25:

Okay, we're going to build new regression tests.

14:31:

I'm going to save the current results.

joereddington@ps488197:~/flow.joereddington.com/watson$ watson -v -d 7 sort

Create Long term Media Wall output.

Total Time on this project: 0:36

17/07/17 15:32 to 16:08 (0:36)

Arts Council rebid

Total Time on this project: 1:18

24/07/17 11:35 to 12:53 (1:18)

UNICEF FUNDING

Total Time on this project: 6:06

19/07/17 19:47 to 20:47 (1:00)
20/07/17 06:52 to 08:30 (1:38)
20/07/17 10:25 to 11:14 (0:49)
20/07/17 18:18 to 19:35 (1:17)
21/07/17 09:29 to 10:51 (1:22)

/home/joereddington/Jurgen/livenotes.md

Total Time on this project: 5:53

19/07/17 15:13 to 16:20 (1:07)
19/07/17 20:48 to 21:12 (0:24)
20/07/17 06:11 to 06:51 (0:40)
20/07/17 09:43 to 10:13 (0:30)
20/07/17 15:01 to 16:52 (1:51)
20/07/17 15:10 to 15:31 (0:21)
24/07/17 10:34 to 11:34 (1:00)

Create Timer

Total Time on this project: 1:52

20/07/17 12:19 to 13:03 (0:44)
20/07/17 16:53 to 18:01 (1:08)

Create the money algorithm

Total Time on this project: 10:16

17/07/17 16:22 to 18:50 (2:28)
18/07/17 08:20 to 09:47 (1:27)
18/07/17 10:17 to 12:24 (2:07)
18/07/17 16:20 to 17:32 (1:12)
19/07/17 16:20 to 17:55 (1:35)
19/07/17 18:16 to 19:43 (1:27)

mail

Total Time on this project: 1:48

19/07/17 19:47 to 20:11 (0:24)
20/07/17 13:04 to 13:53 (0:49)
24/07/17 13:05 to 13:40 (0:35)

Exercise

Total Time on this project: 4:47

17/07/17 21:48 to 22:09 (0:21)
18/07/17 17:58 to 18:59 (1:01)
18/07/17 22:09 to 22:48 (0:39)
21/07/17 18:25 to 20:04 (1:39)
23/07/17 08:56 to 10:03 (1:07)

Total project time 1 day, 8:36:00 joereddington@ps488197:~/flow.joereddington.com/watson$

14:32:

Now, let's set up the thing.

14:39:
14:47:

Working fine.

14:50:

All tests passing.

14:50:

Okay, what's the coverage looking like?

14:54:

Looking at the coverage - some missing things.

14:55:

Graph_out is an output thing and I feel like we're already on that one.

18:01:

I'm back. I want to make things classes.

18:04:

(obviously first I have to make them actually work...

18:08:

Working - but before we move forward I'm going to cut things down a little.

The current time on flair is 12:28

18:11:

When we did coverage it was 402 lines. 40 of those are now in timechart.py

18:17:

Hmm. I feel like make sleep file and make exercise file are the same file - simply with a different space between times.

18:19:

I feel like atoms should know their own Time Format and then we stop having to move things around.

18:33:

All tests passing, did a quit commit.

18:46:
18:56:

Okay, I'm refacting a lot. hang on.

19:00:
19:08:

Keeping going, opened up two new tests

19:16:

I've got a problem with the watch atom clustering... for some reason it isn't clustering at all. :(

19:19:

Oh... hang on...

19:25:

Nope, wasn't that.

19:27:

Going to compare with the other print sessions we have.

joereddington commented 7 years ago
31/07/17 13:47:

Back, let's see where we left off.

13:53:

Hang on - think the test might be wrong (classic... )

I've committed with all tests passing. Now to add another one.

13:54:

Or do I want to merge this one in?

13:55:

Fuck it. Keep it going.

14:00:

I've written the test and the code, let's see what happens.

14:03:

Seems to have worked. Awesome.