Rick Carlino
37222d09d6
CI debug: Possible race condition, again?
2020-04-13 14:03:45 -05:00
Rick Carlino
0c4b14eb1b
mix format
2020-03-31 14:49:24 -05:00
Rick Carlino
53f28daefe
Finish testing AutoSyncAssetHandler
2020-03-31 14:45:14 -05:00
Rick Carlino
1aac649e9b
Test case: AutoSyncHnadler Handles @no_cache_kinds
2020-03-31 14:15:25 -05:00
Rick Carlino
78e44eeb81
Increase wait times to account for slowness of CI?
2020-03-31 11:53:18 -05:00
Rick Carlino
04c74b28f2
Replace Process.sleep() with Helpers.wait_for(pid)
2020-03-31 11:37:23 -05:00
Rick Carlino
e5a29361d2
👏 Race conditions arre gone from test suite
2020-03-31 11:09:56 -05:00
Rick Carlino
aa6f3f4ad1
Race condition fix (probably)
2020-03-31 10:58:40 -05:00
Rick Carlino
06323242c2
Add Helpers.wait_for(pid). Remove :noop call
2020-03-31 10:36:48 -05:00
Rick Carlino
33b0947c7a
Set `async` to `false` in a few missing places
2020-03-30 17:43:29 -05:00
Rick Carlino
9a5b927953
FarmbotExt: Dont supervise anything in :test
2020-03-26 17:06:55 -05:00
Rick Carlino
128ed8ec43
No supervisor children when in test env for FarmbotExt.Bootstrap.Supervisor
2020-03-26 16:30:02 -05:00
Rick Carlino
e25a30a344
Test case: Autosync of a device asset.
2020-03-10 15:26:35 -05:00
Rick Carlino
06926b05ce
Dont start process tree in test env. Silence numerous logs.
2020-03-10 12:08:19 -05:00
Rick Carlino
fb118002e4
WIP: TODO: Fix supervisor error messages in test suite
2020-03-09 09:30:55 -05:00
Rick Carlino
1f26485f88
Add `LOG_SILENCE` env for local dev, remove less helpful debug/warn logs (Elixir kind, not FarmBot kind)
2020-03-06 10:30:04 -06:00
Rick Carlino
7059f3c44c
FAILING: Verify mocks on exit.
2020-01-25 11:48:52 -06:00
Rick Carlino
2f7685c077
Update FarmbotCeleryScriptTest to use Mimic
2020-01-22 17:07:22 -06:00
Rick Carlino
7e5738f883
[UNSTABLE] 42.1% Partial removal of :mox, some tests failing though
2020-01-22 11:41:43 -06:00
Rick Carlino
1730bf8c29
Configurable EXUNIT_TIMEOUT
2019-09-13 16:03:22 -07:00
Connor Rigby
11220c3697
Refactor Preloader test system
...
* Gets rid of the Preloader behaviour
* This prevents the Preloader mock from overriding the _actual_
implementation.
* Update auto_sync_channel_test to mock the API, not the Preloader
* remove old preloader_test as it didn't do anything
2019-09-13 16:03:22 -07:00
Connor Rigby
26578a7ae2
Update `mox` to be used correctly.
...
I previously misunderstood how the black magic of mox actually works.
This updates `farmbot_ext` to not require setting excess data in every
config.exs entry. Also removes calls to `Application.get_env/2`
2019-09-13 16:03:22 -07:00
Rick Carlino
8c7d6f6608
AutoSyncChannel Testing: Device, `auto_sync = false` ( #714 )
...
* Test auto_sync ignore case
* Test case: auto_sync is disabled.
* Test for auto_sync of Device assets
2019-09-13 16:03:21 -07:00
Rick Carlino
4248c93962
Add mox and excoveralls
...
* and tests for AutoSyncChannel
* add tests for auto sync preloader
2019-09-13 16:03:20 -07:00
connor rigby
f6b1839ffe
Quick example on how to use mox
2019-09-13 16:03:20 -07:00
Rick Carlino
0c75d61d2d
Add mox, excoveralls and a test for AutoSyncChannel
2019-09-13 16:03:20 -07:00
connor rigby
dd05ffc40e
Quick example on how to use mox
2019-09-13 16:03:20 -07:00
connor rigby
cf1ef23b17
Start splitting Farmbot Application Poncho Style
...
This begins splitting the monolithic Farmbot application
into separate, independent OTP applicatoins.
2019-09-13 16:03:13 -07:00