Unit Tests with Barrels that only have Functions?

Is it possible to run the Run No Evil Unit tests across barrels that only have functions.  Or does the test system need to have a running application as part of the code being tested?

I tried to get Unit tests to work on a pure function Barrel but could only get it to work once I added a dummy app to the test code.

Without a dummy app I get the following error:-

Error: Unexpected Type Error
Details: Failed to start CIQ Application
Stack:

  • I believe the test system requires an app. The system requires an entry point to run anything, and that entry point refers to your class that inherits from AppBase.

    I'd expect that you'd be able to have all the test code you want in your barrel. At some point you'd have an app (or apps) that includes the barrel. When you run the unit tests for that app, it should run the unit tests for the barrel.