Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing Tests Out of the Box on Lucee #95

Open
jamiejackson opened this issue May 31, 2016 · 3 comments
Open

Failing Tests Out of the Box on Lucee #95

jamiejackson opened this issue May 31, 2016 · 3 comments

Comments

@jamiejackson
Copy link
Contributor

I'm writing some new features and I'd like to have code coverage for the new bits, as well as prevent regressions in the old bits, but there are a handful of failures right out of the box.

I took a look at a couple of them, but they weren't the sorts of things where it was clear what the intent was, so it wasn't easy to see if the problems were with the tests or with the code under test.

(Note, I'm running with #94; otherwise, I wouldn't be able to run the tests at all.)

Functional Tests

http://127.0.0.1:40878/ValidateThis/functionalTests/run.cfm
screenshot-127 0 0 1 40878 2016-05-31 16-41-53

Unit Tests

http://127.0.0.1:40878/ValidateThis/unitTests/run.cfm
screenshot-127 0 0 1 40878 2016-05-31 16-40-05

I realize this isn't the most active project in the world, but if anyone can help me at least start with a firm test foundation, I'd be grateful.

@jamiejackson
Copy link
Contributor Author

I just realized that the tests all pass in ACF9, but not in Lucee 4. That gives me something to work with.

@cameroncf
Copy link

Jamie-

I have yet to actually setup the tests since I started working on this project - I just sort of setup the project and started working on documentation but didn't get to even trying the automated tests. So you are already ahead of me on trying out the tests.

Looks like you are making some progress though!

-Cameron

@jamiejackson
Copy link
Contributor Author

In #94, I've now got all the functional tests working in Lucee 4, and four out of eight previously failing unit tests are now passing. (Four unit tests left.)

By the way, assuming I'm doing it right, testing is easy, if you've got the right stuff:

  • Drop a copy of mxunit into the root.
  • Drop a copy of CFSelenium* into the root.
  • Point the web root to the root of the ValidateThis project. (That should yieldcfSelenium, mxunit, and ValidateThis directly under the web root.) BTW, I've been using commandbox 3.1's fancy new multi-engine support to make it super easy to switch/test different engines and versions.
  • Run unit tests with http://your_host:your_port/ValidateThis/unitTests/run.cfm
  • Run functional tests with http://your_host:your_port/ValidateThis/functionalTests/run.cfm

* I have a pull request (teamcfadvance/CFSelenium#25) in for CFSelenium, too, which gets things working there.

Once the chips settle, I'll write this up in the readme, or something.

@jamiejackson jamiejackson changed the title Failing Tests Out of the Box Failing Tests Out of the Box on Lucee Jun 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants