9 Commits

Author SHA1 Message Date
657721adc6 Update dart-git and stop using the Result class
Instead we're going to move back to standard exceptions.

Using a custom Result class has created far far more problems
- The Stacktraces aren't always right
- Sometimes one forgets to check the Result error
- All other exception throwing code needing to be converted to Results
- Non idiomatic Dart code

I think it's better to just go back to exceptions. They have their
problems, but overall, I think it's a better approach.
2023-11-24 14:03:30 +01:00
a878a5047d Print 'git' executable version in the tests
This way it'll be easier to figure out why this is failing.
2022-03-02 18:42:53 +01:00
51a2b09332 Write a test for heading being deleted
This test passes :(

https://github.com/GitJournal/GitJournal/issues/579

On the plus side, I've learnt a lot about widget testing.
2022-03-01 17:10:47 +01:00
61c0052e2d Fix using note's title as filename
Also added a full end-to-end test which uses the NoteEditor and types
some text + saves the note. This has taken more than an hour, but is
going to be very useful to improve GitJournal's reliability.

Fixes #604
2022-02-24 14:26:25 +01:00
3329a7f71f Repository Test: Split out testing setup code
This is useful for other tests as well
2022-02-24 13:29:47 +01:00
6237161a28 Enable logging in tests
It makes it easier to diagnose issues on the CI
2022-02-20 01:24:07 +05:30
ed76e91a61 Add missing reuse header 2022-01-26 12:01:47 +01:00
c9a031dd29 moveNote: Add test + fix
Fixes #590
2022-01-26 12:01:47 +01:00
69db114fe8 RepositoryTest: Move setup code into a library
I want to write lots and lots more higher level integration tests. This
is the first step
2022-01-26 12:01:47 +01:00