mirror of
https://github.com/ACINQ/eclair.git
synced 2024-11-19 01:43:22 +01:00
9610fe30e3
This PR does two main things: - introduce a new `FixtureSpec` base class for tests that involve a fixture. See the scaladoc for more info. - add new simple integration tests in package `integration.basic`. They are based on `MinimalNodeFixture`, which is a full setup for a node with real actors, except the bitcoin part (watcher/wallet) which is mocked. They are much lighter than our previous integration tests, which allow us to keep each test individual, as opposed to having all tests of the same suite depend on each other. We can define more complex fixtures with any number of nodes. Other minor improvements: - update scalatest version - simplify `ChannelStateTestsHelperMethods` - replace all === by == Triple equals allows customizing the equality method, but we never use that. Detailed errors (which is what we were looking for) are provided by mixing in scalatest's `Assertions` and using the regular `assert(x==y)` syntax. The `Assertions` trait is already mixed in by default in all scalatest suites. |
||
---|---|---|
.. | ||
modules | ||
src | ||
pom.xml |