I am trying to add additional tests to the <cors> ...
# box-products
r
I am trying to add additional tests to the cors module but I am having some issues getting testbox to even run correctly. • The first issue is that
tests.specs.intergration.CORSSpec
inherits
tests.resources.ModuleIntergrationSpec
but the setup() method is not being executed by testbox. • The second issue I face is that the majority of the tests do a cfhttp (hyper in this case) call to
test/resources/app/index.cfm
which I understand is a separate coldbox application but I dont understand how the cors module is suppose to be loaded in that application. My understanding about testbox is that all I have to do is start the server and hit
tests/runner.cfm
and the existing tests should work. Am I missing something?
prehaps @elpete can weigh in
s
did you run
box install
in the root directory of the module?
its sounds like the dependencies have not been installed yet, which would make sense why the tests are not running. the box.json in the root of the module list the dependencies
r
I have run box install
no dice
e
Can you pull the laster
master
branch and try again? That test suite was messed up.
It’s still pretty confusing and could probably be done better, but it was at least passing locally (we’ll see about on GitHub)
Oh…and this isn’t even over on GitHub Actions yet. Well, the code is still up: https://github.com/elpete/cors/commit/645f30484466110847f7503447510115aae232be
r
Excellent, thank you!